[arch-commits] Commit in libtorrent-rasterbar/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Nov 11 08:42:15 UTC 2020
Date: Wednesday, November 11, 2020 @ 08:42:15
Author: jelle
Revision: 400277
Remove python2 module as nothing requires it in ou repos
Modified:
libtorrent-rasterbar/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++---------------------
1 file changed, 8 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 07:48:56 UTC (rev 400276)
+++ PKGBUILD 2020-11-11 08:42:15 UTC (rev 400277)
@@ -11,7 +11,7 @@
arch=('x86_64')
license=('BSD')
depends=('boost-libs')
-makedepends=('boost' 'python2' 'python')
+makedepends=('boost' 'python')
options=('!emptydirs')
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-$pkgver/$pkgname-$pkgver.tar.gz
$pkgname-cxx14-fix.patch::https://github.com/arvidn/libtorrent/pull/5026.patch)
@@ -19,7 +19,6 @@
'94ddc3bdfc33f7b5300cc01b7c821dbd9a1433cae93bb7d467a1a732e84e7be4a6e75fbd69e88802e2eecca9c8541ecd1856d4ca2b508af224562cb05de80cca')
prepare() {
- mkdir py2 py3
cd $pkgname-$pkgver
# https://bugs.archlinux.org/task/67754
patch -p1 -i ../$pkgname-cxx14-fix.patch
@@ -30,33 +29,21 @@
autoreconf -if
}
-_build() (
- cd py$1
-
- # FS#50745
- _boost="boost_python"
- if [ $1 -eq 3 ]; then _boost="boost_python3"; fi
-
- PYTHON=/usr/bin/python$1 \
- ../$pkgname-$pkgver/configure \
+build() {
+ cd $pkgname-$pkgver
+ ./configure \
--prefix=/usr \
--enable-python-binding \
--enable-examples \
--disable-static \
--with-libiconv \
- --with-boost-python=$_boost
-)
-
-build() {
- _build 2
- _build 3
+ --with-boost-python=boost_python3
}
package() {
- make -C py2 DESTDIR="$pkgdir" install
- make -C py3 DESTDIR="$pkgdir" install
- install -Dm644 $pkgname-$pkgver/COPYING \
- "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ 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}
More information about the arch-commits
mailing list