diff options
| author | Mineralwater Xu <[email protected]> | 2021-04-18 22:00:08 +0800 |
|---|---|---|
| committer | Mineralwater Xu <[email protected]> | 2021-04-18 22:00:08 +0800 |
| commit | 83778aafdb584a603709439b6e70c4d7dd1b2936 (patch) | |
| tree | f0151f86e3b093cda4094e2666ed7a3e01ab598b | |
| parent | 54950440aa9a5b192f4be25bb9b2af53fb7794e4 (diff) | |
Commit: get rid of cmake
| -rw-r--r-- | archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD b/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD index bb02e9d..ad2c4b9 100644 --- a/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD +++ b/archlinuxmw/libtorrent-rasterbar-mw/PKGBUILD @@ -9,7 +9,7 @@ arch=('x86_64') url="https://www.rasterbar.com/products/libtorrent/" license=('BSD') depends=('boost-libs' 'openssl') -makedepends=('boost' 'cmake' 'python' 'python-setuptools') +makedepends=('boost' 'python' 'python-setuptools') options=('!emptydirs') source=(https://github.com/arvidn/libtorrent/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz) sha512sums=('29af34109f8bab91be03cd86a82ef592a9d1ae1a99ef4e6468985ac8968c67f80996bc0ac3fe2478ee20627df52e44128ff28fe81e928f31148b8c7066d67ccb') @@ -25,21 +25,20 @@ prepare() { build() { cd $_pkgname-$pkgver - - cmake \ - -B "_build" \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX="/usr" \ - -DCMAKE_INSTALL_LIBDIR="lib" \ - -Dpython-bindings=ON \ - -Dboost-python-module-name="python" \ - ./ - make -C "_build" + ./configure \ + --prefix=/usr \ + --enable-python-binding \ + --enable-examples \ + --disable-static \ + --with-libiconv \ + --with-boost-python=boost_python3 } package() { cd $_pkgname-$pkgver - - make -C "_build" DESTDIR="$pkgdir" install + 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} } |
