summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Chen2020-04-28 14:09:36 +0800
committerJohn Chen2020-04-28 14:09:36 +0800
commit803271ee521edf63eeeb8e27ffd431df09a9c1fb (patch)
treea4dfb05dc2d680ce1f469a09e2d8a421b9aa69e6
parent543ab2732b8797aed65b79cb73e3b81bd03ebd23 (diff)
downloadaur-803271ee521edf63eeeb8e27ffd431df09a9c1fb.tar.gz
Update to 0.8.3 and drop python2 support.
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD38
2 files changed, 14 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0b18aa646cd..20b6b83a61b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = python-nclib
pkgdesc = Netcat as a library: convienent socket interfaces
- pkgver = 0.8.1
- pkgrel = 2
+ pkgver = 0.8.3
+ pkgrel = 1
url = https://pypi.python.org/pypi/nclib/0.8.1
arch = any
license = MIT
makedepends = python-setuptools
makedepends = python2-setuptools
- source = https://files.pythonhosted.org/packages/source/n/nclib/nclib-0.8.1.tar.gz
- md5sums = 4b664281fcb6ba8dff77f3e5d8962f13
- sha512sums = a3cc23733773ef25856de79a008758547590b0084d27ce2a6a04b846a4bf769be51363deb8e4a75d4ad30dfb2667dd09c6ead19e1cd1bc3c7becee62d1109782
+ source = https://files.pythonhosted.org/packages/source/n/nclib/nclib-0.8.3.tar.gz
+ md5sums = 82224f555df740178f128b7261de2137
+ sha256sums = 7ee56ca74ade02796c01923b117d7192b7a2381ab06464b4168b0f4e0e0deb1d
pkgname = python-nclib
depends = python
diff --git a/PKGBUILD b/PKGBUILD
index ef01d9d2bb5..abc0dc09959 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,50 +1,30 @@
# Maintainer: Pochang Chen <johnchen902@gmail.com>
-pkgbase=python-nclib
-pkgname=(python-nclib python2-nclib)
+pkgname=python-nclib
_name=nclib
-pkgver=0.8.1
-pkgrel=2
+pkgver=0.8.3
+pkgrel=1
pkgdesc="Netcat as a library: convienent socket interfaces"
license=("MIT")
arch=('any')
url="https://pypi.python.org/pypi/nclib/0.8.1"
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-md5sums=('4b664281fcb6ba8dff77f3e5d8962f13')
-sha512sums=('a3cc23733773ef25856de79a008758547590b0084d27ce2a6a04b846a4bf769be51363deb8e4a75d4ad30dfb2667dd09c6ead19e1cd1bc3c7becee62d1109782')
-
-prepare() {
- cp -a nclib-$pkgver{,-py2}
-}
+md5sums=('82224f555df740178f128b7261de2137')
+sha256sums=('7ee56ca74ade02796c01923b117d7192b7a2381ab06464b4168b0f4e0e0deb1d')
build() {
- cd "$srcdir"/nclib-$pkgver
+ cd "$srcdir"/nclib-$pkgver
python setup.py build
- cd "$srcdir"/nclib-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/nclib-$pkgver
+ cd "$srcdir"/nclib-$pkgver
python setup.py test
- cd "$srcdir"/nclib-$pkgver-py2
- python2 setup.py test
}
-package_python-nclib() {
+package() {
depends=('python')
cd nclib-$pkgver
python setup.py install -O1 --root="$pkgdir"
- # install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-nclib() {
- depends=('python2')
- cd nclib-$pkgver-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
}