summaryrefslogtreecommitdiff
path: root/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD
diff options
context:
space:
mode:
authorMineralwater Xu <[email protected]>2021-06-10 15:58:16 +0800
committerMineralwater Xu <[email protected]>2021-06-10 15:58:16 +0800
commit6a2cd25a28348971a351792f031e3b7f1d0227ae (patch)
tree5bc3053efd7262f047b5523e43339dd56e40aaf7 /archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD
parentc839b0f69df0b0cb400444a3692a4df5dfb79fd9 (diff)
upgpkg: libtorrent-rasterbar 1:1.2.14-1
Diffstat (limited to 'archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD')
-rw-r--r--archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD42
1 files changed, 18 insertions, 24 deletions
diff --git a/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD b/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD
index f78c78a..4639614 100644
--- a/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD
+++ b/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD
@@ -2,45 +2,39 @@
_pkgname=libtorrent-rasterbar
pkgname=$_pkgname-mw
-pkgver=1.2.13
-pkgrel=2
+pkgver=1.2.14
+pkgrel=1
+epoch=1
pkgdesc="A C++ BitTorrent library that aims to be a good alternative to all the other implementations around"
arch=('x86_64')
url="https://www.rasterbar.com/products/libtorrent/"
license=('BSD')
depends=('boost-libs' 'openssl')
-makedepends=('boost' 'python' 'python-setuptools')
+makedepends=('boost' 'cmake' 'ninja' 'python-setuptools')
options=('!emptydirs')
provides=('libtorrent-rasterbar')
conflicts=('libtorrent-rasterbar')
source=(https://github.com/arvidn/libtorrent/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz)
-sha512sums=('29af34109f8bab91be03cd86a82ef592a9d1ae1a99ef4e6468985ac8968c67f80996bc0ac3fe2478ee20627df52e44128ff28fe81e928f31148b8c7066d67ccb')
+sha512sums=('9d23184785597a11f96e9d68ac7bd2ba73a9dbc0568c3fd81ba2f1ef2381f6ee290b48a77f1db6f7ee82aa1f6640a6a54dbfbfa7b236bb3be8a6e083dce6cd69')
prepare() {
- cd $_pkgname-$pkgver
-
- # Avoid depending on newer processors
- sed -i 's/-msse4.2//' configure.ac
-
- autoreconf -if
+ mkdir -p build
}
build() {
- cd $_pkgname-$pkgver
- ./configure \
- --prefix=/usr \
- --enable-python-binding \
- --enable-examples \
- --disable-static \
- --with-libiconv \
- --with-boost-python=boost_python3
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_INSTALL_LIBDIR="lib" \
+ -Dpython-bindings=ON \
+ -Dboost-python-module-name="python" \
+ -Dpython-egg-info=ON \
+ -GNinja ../$_pkgname-$pkgver
+ ninja
}
package() {
- cd $_pkgname-$pkgver
- make DESTDIR="$pkgdir" install
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
-
- # Remove most example binaries
- rm "$pkgdir"/usr/bin/{*_test,*_tester,simple_client,stats_counters}
+ cd build
+ DESTDIR="$pkgdir" ninja install
+ install -Dm644 ../$_pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$_pkgname/
}