Date: Saturday, February 3, 2018 @ 00:21:59
  Author: dvzrv
Revision: 288660

archrelease: copy trunk to community-testing-x86_64

Added:
  python-inet_diag/repos/community-testing-x86_64/
  python-inet_diag/repos/community-testing-x86_64/PKGBUILD
    (from rev 288659, python-inet_diag/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-inet_diag/repos/community-testing-x86_64/PKGBUILD (from rev 
288659, python-inet_diag/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2018-02-03 00:21:59 UTC (rev 288660)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <d...@sleepmap.de>
+# Contributor: Joakim Hernberg <jhernb...@alchemy.lu>
+
+pkgbase=python-inet_diag
+pkgname=('python-inet_diag' 'python2-inet_diag')
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Python bindings for the inet_diag kernel interface"
+arch=('x86_64')
+url="https://git.kernel.org/pub/scm/libs/python/python-inet_diag/python-inet_diag.git/";
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://git.kernel.org/pub/scm/libs/python/${pkgbase}/${pkgbase}.git/snapshot/${pkgbase}-${pkgver}.tar.gz";)
+sha512sums=('fe9c5a51d0b29abdb765990db37ab6f399aa5f46fa068655892181fea413d41a07486af7509540518a765d03fb4981a8a8784e5aa8b0367bb65bc36ef136be32')
+
+prepare() {
+  cp -a "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+  cd "${pkgname[1]}-${pkgver}"
+  sed -e '1s/python/&2/' -i *.py
+}
+
+build() {
+  cd "${pkgname[0]}-${pkgver}"
+  python setup.py build
+  cd ../"${pkgname[1]}-${pkgver}"
+  python2 setup.py build
+}
+
+package_python-inet_diag() {
+  depends=('python')
+  cd "${pkgname[0]}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}/"
+  install -vDm775 psk.py "${pkgdir}/usr/bin/psk"
+  install -vDm775 pss.py "${pkgdir}/usr/bin/pss"
+}
+
+package_python2-inet_diag() {
+  depends=('python2')
+  cd "${pkgname[1]}-${pkgver}"
+  python2 setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}/"
+  install -vDm775 psk.py "${pkgdir}/usr/bin/psk2"
+  install -vDm775 pss.py "${pkgdir}/usr/bin/pss2"
+}
+# vim:set ts=2 sw=2 et:
+

Reply via email to