author | Antonio Rojas
<arojas@archlinux.org> 2020-05-29 09:36:44 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2020-05-29 09:36:44 UTC |
parent | 39fd247384225edb3d7619752d4b0f4c85e63184 |
PKGBUILD | +9 | -9 |
diff --git a/PKGBUILD b/PKGBUILD index 06976d9..c3c37c4 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,29 +5,29 @@ pkgname=libktorrent pkgver=2.1.1 _ktorrentver=5.1.2 -pkgrel=1 +pkgrel=2 pkgdesc="A BitTorrent protocol implementation" arch=(x86_64) url="https://www.kde.org/applications/internet/ktorrent/" license=(GPL2) depends=(kio qca-qt5) makedepends=(extra-cmake-modules boost doxygen) -source=("https://download.kde.org/stable/ktorrent/$_ktorrentver/$pkgname-$pkgver.tar.xz"{,.sig}) +source=("https://download.kde.org/stable/ktorrent/$_ktorrentver/$pkgname-$pkgver.tar.xz"{,.sig} + libktorrent-build-fix.patch::"https://invent.kde.org/network/libktorrent/-/commit/1e8ce6e9.patch") sha256sums=('5cc45c0b50a1b6b2ce64ad0384128f4ac3bc0e4a1417eb58e5e992b510fca100' - 'SKIP') + 'SKIP' + '345d08c5ef0281415ec9dc185a098c47bcfc26dce1f205c814b5aae2d60310bf') validpgpkeys=(1EE5A3205904BAA2B88C0A9D24FD31940095C0E1) # Andrius Štikonas <andrius@stikonas.eu> prepare() { - mkdir -p build + patch -d $pkgname-$pkgver -p1 -i ../libktorrent-build-fix.patch } build() { - cd build - cmake ../$pkgname-$pkgver - make + cmake -B build -S $pkgname-$pkgver + cmake --build build } package() { - cd build - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build }