summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2020-04-29 19:42:26 +1200
committerGeorge Rawlinson2020-04-29 19:42:26 +1200
commit1143594da772a00ac8223b5ede738da655f1b60f (patch)
tree6d6d38b4859fc10e7b0d0c3fa7a0bb3cf43606d9
parent165d74962c233db64ebc1e2e3e93d336809a3bf7 (diff)
downloadaur-1143594da772a00ac8223b5ede738da655f1b60f.tar.gz
upgpkg: python-nclib 0.8.3-2
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD30
2 files changed, 22 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1ca23bd9d32..0a8b8ecb07b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,16 @@
pkgbase = python-nclib
pkgdesc = Netcat as a library: convienent socket interfaces
pkgver = 0.8.3
- pkgrel = 1
+ pkgrel = 2
url = https://pypi.python.org/pypi/nclib
arch = any
license = MIT
makedepends = python-setuptools
+ depends = python
source = https://files.pythonhosted.org/packages/source/n/nclib/nclib-0.8.3.tar.gz
- md5sums = 82224f555df740178f128b7261de2137
- sha256sums = 7ee56ca74ade02796c01923b117d7192b7a2381ab06464b4168b0f4e0e0deb1d
+ source = https://raw.githubusercontent.com/rhelmot/nclib/release/stable/LICENSE
+ sha512sums = 5080e8ce4742b522342926a35709b1e437630137d73eaecca6d9a630277265e0a71ebe0c9011a6b73f3bd39b029a2e38825fe2d448780763cfd68e429227bfd2
+ sha512sums = bfc2f2a28a84f096d914cfeefa0c1da6080dffc62e787f0558b0f05e23ddcedc448fbd72177be65e5a543441e1612aae3e1004e693bf081092cddce01b208787
pkgname = python-nclib
- depends = python
diff --git a/PKGBUILD b/PKGBUILD
index 91a83554ec2..dd17cc51ac7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,34 @@
-# Maintainer: Pochang Chen <johnchen902@gmail.com>
+# Maintainer: George Rawlinson <george@rawlinson.net.nz>
+# Contributor: Pochang Chen <johnchen902@gmail.com>
pkgname=python-nclib
_name=nclib
pkgver=0.8.3
-pkgrel=1
+pkgrel=2
pkgdesc="Netcat as a library: convienent socket interfaces"
-license=("MIT")
+license=('MIT')
arch=('any')
url="https://pypi.python.org/pypi/nclib"
+depends=('python')
makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-md5sums=('82224f555df740178f128b7261de2137')
-sha256sums=('7ee56ca74ade02796c01923b117d7192b7a2381ab06464b4168b0f4e0e0deb1d')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
+ "https://raw.githubusercontent.com/rhelmot/nclib/release/stable/LICENSE")
+sha512sums=('5080e8ce4742b522342926a35709b1e437630137d73eaecca6d9a630277265e0a71ebe0c9011a6b73f3bd39b029a2e38825fe2d448780763cfd68e429227bfd2'
+ 'bfc2f2a28a84f096d914cfeefa0c1da6080dffc62e787f0558b0f05e23ddcedc448fbd72177be65e5a543441e1612aae3e1004e693bf081092cddce01b208787')
build() {
- cd "$srcdir"/nclib-$pkgver
- python setup.py build
+ cd "$_name-$pkgver"
+ python setup.py build
}
check() {
- cd "$srcdir"/nclib-$pkgver
- python setup.py test
+ cd "$_name-$pkgver"
+ python setup.py test
}
package() {
- depends=('python')
- cd nclib-$pkgver
- python setup.py install -O1 --root="$pkgdir"
+ cd "$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" "$srcdir/LICENSE"
}