diff options
author | John Chen | 2020-04-28 14:35:36 +0800 |
---|---|---|
committer | John Chen | 2020-04-28 14:35:36 +0800 |
commit | d566eeb1606a9b512f34872fe1d04f29a822e1c7 (patch) | |
tree | 1ff8ca9846dff073ea7f7ba3f8874c90241740c0 | |
parent | 9e640070d228264e06e5fdd131ce9954232ccf58 (diff) | |
download | aur-d566eeb1606a9b512f34872fe1d04f29a822e1c7.tar.gz |
Drop python2 support and remove check().
Upstream no longer support python2.
`python setup.py test` is not working on my machine, but there are no
test in the code base.
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 7 insertions, 40 deletions
@@ -1,13 +1,12 @@ pkgbase = python-nclib-git pkgdesc = Netcat as a library - pkgver = r40.9213d5b + pkgver = r80.8c77802 pkgrel = 1 url = https://github.com/rhelmot/nclib arch = any license = MIT makedepends = git makedepends = python-setuptools - makedepends = python2-setuptools source = git+https://github.com/rhelmot/nclib.git md5sums = SKIP @@ -16,8 +15,3 @@ pkgname = python-nclib-git provides = python-nclib conflicts = python-nclib -pkgname = python2-nclib-git - depends = python2 - provides = python2-nclib - conflicts = python2-nclib - @@ -1,59 +1,32 @@ # Maintainer: Pochang Chen <johnchen902@gmail.com> -pkgbase=python-nclib-git -pkgname=(python-nclib-git python2-nclib-git) +pkgname=python-nclib-git _name=nclib -pkgver=r40.9213d5b +pkgver=r80.8c77802 pkgrel=1 pkgdesc="Netcat as a library" license=("MIT") arch=('any') url="https://github.com/rhelmot/nclib" -makedepends=('git' 'python-setuptools' 'python2-setuptools') +makedepends=('git' 'python-setuptools') source=('git+https://github.com/rhelmot/nclib.git') md5sums=('SKIP') -prepare() { - cd "$srcdir" - cp -aTf nclib{,-py2} -} - pkgver() { cd "${srcdir}/nclib" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$srcdir"/nclib + cd "$srcdir"/nclib python setup.py build - cd "$srcdir"/nclib-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/nclib - python setup.py test - cd "$srcdir"/nclib-py2 - python2 setup.py test } -package_python-nclib-git() { +package() { depends=('python') conflicts=('python-nclib') provides=('python-nclib') - cd "$srcdir"/nclib + cd "$srcdir"/nclib python setup.py install -O1 --root="$pkgdir" install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } - -package_python2-nclib-git() { - depends=('python2') - conflicts=('python2-nclib') - provides=('python2-nclib') - cd "$srcdir"/nclib-py2 - python2 setup.py install -O1 --root="$pkgdir" - for file in "$pkgdir"/usr/bin/*; do - mv "$file" "$file"2 - done - install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} |