summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Chen2017-10-14 23:54:42 +0800
committerJohn Chen2017-10-15 00:00:32 +0800
commitb2da7c467fbf7f529f79d882fa3bdf57a5df36f4 (patch)
treee51f1d2fda99afe07f3431e58444b2ef6faeda7c
downloadaur-b2da7c467fbf7f529f79d882fa3bdf57a5df36f4.tar.gz
nclib 0.8.0
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD47
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e00d9c7e2a0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = python-nclib
+ pkgdesc = Netcat as a library: convienent socket interfaces
+ pkgver = 0.8.0
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/nclib/0.8.0
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://files.pythonhosted.org/packages/source/n/nclib/nclib-0.8.0.tar.gz
+ md5sums = d3f3f622eefe4c7cdd793661a47b4668
+ sha512sums = 8d303d68ecee82b1a015d80edff87707b48d6b75483a527c8557994a8d795d581f9aef617d3ea6e17452d8495341f1b22f2228bc73a80da459d9c820aff3418c
+
+pkgname = python-nclib
+ depends = python
+
+pkgname = python2-nclib
+ depends = python2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fde1523daf7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Pochang Chen <johnchen902@gmail.com>
+
+pkgbase=python-nclib
+pkgname=(python-nclib python2-nclib)
+_name=nclib
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="Netcat as a library: convienent socket interfaces"
+license=("MIT")
+arch=('any')
+url="https://pypi.python.org/pypi/nclib/0.8.0"
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+md5sums=('d3f3f622eefe4c7cdd793661a47b4668')
+sha512sums=('8d303d68ecee82b1a015d80edff87707b48d6b75483a527c8557994a8d795d581f9aef617d3ea6e17452d8495341f1b22f2228bc73a80da459d9c820aff3418c')
+
+prepare() {
+ cp -a nclib-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/nclib-$pkgver
+ python setup.py build
+ cd "$srcdir"/nclib-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/nclib-$pkgver
+ python setup.py test
+ cd "$srcdir"/nclib-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-nclib() {
+ 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"
+ # install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}