[arch-commits] Commit in python-linux-procfs/repos (2 files)
David Runge
dvzrv at archlinux.org
Fri Feb 2 22:54:19 UTC 2018
Date: Friday, February 2, 2018 @ 22:54:18
Author: dvzrv
Revision: 288656
archrelease: copy trunk to community-testing-any
Added:
python-linux-procfs/repos/community-testing-any/
python-linux-procfs/repos/community-testing-any/PKGBUILD
(from rev 288655, python-linux-procfs/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-linux-procfs/repos/community-testing-any/PKGBUILD (from rev 288655, python-linux-procfs/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-02-02 22:54:18 UTC (rev 288656)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Joakim Hernberg <jhernberg at alchemy.lu>
+# Contributor: Ninez <triplesquarednine at gmail.com>
+
+pkgbase=python-linux-procfs
+pkgname=('python-linux-procfs' 'python2-linux-procfs')
+pkgver=0.5.1
+pkgrel=2
+pkgdesc="Linux /proc abstraction classes for python"
+arch=('any')
+url="https://git.kernel.org/pub/scm/libs/python/python-linux-procfs/python-linux-procfs.git/"
+license=('GPL')
+makedepends=('python-setuptools' 'python-six' 'python2-setuptools' 'python2-six')
+source=("https://git.kernel.org/pub/scm/libs/python/${pkgbase}/${pkgbase}.git/snapshot/${pkgbase}-${pkgver}.tar.gz")
+sha512sums=('eb57fbc17e918cea1234323bf48ea228df00dafb5344dad94cf88c63116058c75c4e8113e203d10eb5005592aad5d55abfc9587d43e18b4ff5ac100833ad3cee')
+
+prepare() {
+ cp -a "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
+ cd "${pkgname[1]}-${pkgver}"
+ # fixing shebang of scripts
+ sed -i '1s/python/python2/' procfs/*.py
+}
+
+build() {
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py build
+ cd ../"${pkgname[1]}-${pkgver}"
+ python2 setup.py build
+}
+
+package_python-linux-procfs() {
+ depends=('python')
+ cd "${pkgname[0]}-${pkgver}"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}/"
+}
+
+package_python2-linux-procfs() {
+ depends=('python2')
+ cd "${pkgname[1]}-${pkgver}"
+ python2 setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}/"
+ mv -v ${pkgdir}/usr/bin/pflags ${pkgdir}/usr/bin/pflags2
+}
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list