summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Weiman2018-12-05 12:43:22 -0500
committerMark Weiman2018-12-05 12:43:22 -0500
commitc46286d08bf2c07e4918c1ae4866fe89a288c6e0 (patch)
tree363f4ed97b6b53e2ddbdbaa04831c629e79bfa2b
downloadaur-c46286d08bf2c07e4918c1ae4866fe89a288c6e0.tar.gz
initial
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD40
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8c4d2df75f2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-pybgpstream
+ pkgver = 1.2.1
+ pkgrel = 1
+ url = https://bgpstream.caida.org/
+ arch = x86_64
+ license = GPL
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ source = https://bgpstream.caida.org/bundles/caidabgpstreamwebhomepage/dists/pybgpstream-1.2.1.tar.gz
+ md5sums = ed8a1f6c72f1a6a40d48c748e0346cf8
+
+pkgname = python-pybgpstream
+ depends = python
+ depends = bgpstream
+
+pkgname = python2-pybgpstream
+ depends = python2
+ depends = bgpstream
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..87696410046
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Mark Weiman <mark.weiman@markzz.com>
+
+pkgbase=python-pybgpstream
+pkgname=('python-pybgpstream' 'python2-pybgpstream')
+_pkgname='pybgpstream'
+pkgver=1.2.1
+pkgrel=1
+arch=('x86_64')
+license=('GPL')
+url="https://bgpstream.caida.org/"
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
+source=("https://bgpstream.caida.org/bundles/caidabgpstreamwebhomepage/dists/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('ed8a1f6c72f1a6a40d48c748e0346cf8')
+
+prepare() {
+ cp -a "${srcdir}/${_pkgname}-${pkgver}" "${srcdir}/${_pkgname}2-${pkgver}"
+
+ find "${srcdir}/${_pkgname}2-${pkgver}" -name '*.py' | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}/${_pkgname}2-${pkgver}"
+ python2 setup.py build
+}
+
+package_python-pybgpstream() {
+ depends=('python' 'bgpstream')
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-pybgpstream() {
+ depends=('python2' 'bgpstream')
+ cd "${srcdir}/${_pkgname}2-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}