Date: Saturday, February 3, 2018 @ 00:19:43
  Author: dvzrv
Revision: 288659

Adding python-inet_diag 0.2.1 from the AUR (as dependency for tuna).

Added:
  python-inet_diag/
  python-inet_diag/repos/
  python-inet_diag/trunk/
  python-inet_diag/trunk/PKGBUILD

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

Added: python-inet_diag/trunk/PKGBUILD
===================================================================
--- python-inet_diag/trunk/PKGBUILD                             (rev 0)
+++ python-inet_diag/trunk/PKGBUILD     2018-02-03 00:19:43 UTC (rev 288659)
@@ -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:
+


Property changes on: python-inet_diag/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property

Reply via email to