diff options
author | Michel Zou | 2019-03-07 19:51:17 +0100 |
---|---|---|
committer | Michel Zou | 2019-03-07 19:51:17 +0100 |
commit | c8e3f79edc9f0448682c1eeb84854b34835d2713 (patch) | |
tree | 5af1a039e8280818cfa31793232542f9d48bfc02 | |
parent | 323f5bfc44aa8b6e89c87a901932b7591cf6b4c8 (diff) | |
download | aur-c8e3f79edc9f0448682c1eeb84854b34835d2713.tar.gz |
drop python2
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 8 insertions, 34 deletions
@@ -1,6 +1,6 @@ pkgbase = python-nfc pkgdesc = Python bindings for libnfc - pkgver = r92.e5f6f89 + pkgver = r95.1cae8e4 pkgrel = 1 url = https://github.com/xantares/nfc-bindings arch = i686 @@ -8,17 +8,10 @@ pkgbase = python-nfc license = BSD makedepends = cmake makedepends = swig - makedepends = libnfc - makedepends = python - makedepends = python2 + depends = python + depends = libnfc source = git+https://github.com/xantares/nfc-bindings.git md5sums = SKIP pkgname = python-nfc - depends = python - depends = libnfc - -pkgname = python2-nfc - depends = python2 - depends = libnfc @@ -1,12 +1,12 @@ -pkgbase=python-nfc -pkgname=('python-nfc' 'python2-nfc') -pkgver=r92.e5f6f89 +pkgname=python-nfc +pkgver=r95.1cae8e4 pkgrel=1 pkgdesc='Python bindings for libnfc' arch=('i686' 'x86_64') license=(BSD) url="https://github.com/xantares/nfc-bindings" -makedepends=('cmake' 'swig' 'libnfc' 'python' 'python2') +makedepends=('cmake' 'swig') +depends=('python' 'libnfc') source=("git+https://github.com/xantares/nfc-bindings.git") md5sums=('SKIP') @@ -17,34 +17,15 @@ pkgver() { build() { - cp -r "$srcdir"/nfc-bindings "$srcdir"/nfc-bindings-py2 - cd "$srcdir"/nfc-bindings mkdir -p build && pushd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr .. - - cd "$srcdir"/nfc-bindings-py2 - mkdir -p build && pushd build - cmake \ - -DPYTHON_EXECUTABLE=/usr/bin/python2 \ - -DCMAKE_INSTALL_PREFIX=/usr .. } -package_python-nfc() +package() { - depends=('python' 'libnfc') - cd "$srcdir"/nfc-bindings/build make DESTDIR="$pkgdir" install } -package_python2-nfc() -{ - depends=('python2' 'libnfc') - - cd "$srcdir"/nfc-bindings-py2/build - make DESTDIR="$pkgdir" install - rm -r "$pkgdir"/usr/share -} - |