Date: Tuesday, August 4, 2015 @ 20:07:27 Author: heftig Revision: 243035
230 Added: python-systemd/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-08-04 18:07:27 UTC (rev 243035) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Jan Alexander Steffens (heftig) <[email protected]> +pkgbase=python-systemd +pkgname=(python-systemd python2-systemd) +pkgver=230 +pkgrel=1 +_commit=58c65cf10a7640669ef84f9119c7841112eea025 +pkgdesc="Python bindings for systemd" +arch=(i686 x86_64) +url="https://github.com/systemd/python-systemd" +license=(LGPL) +makedepends=(systemd python python2 git) +source=("$pkgbase::git+${url}#commit=${_commit}") +sha256sums=('SKIP') + +prepare() { + cp -a $pkgbase python2 + mv $pkgbase python3 +} + +build() { + cd python3 + make PYTHON=/usr/bin/python3 + + cd ../python2 + make PYTHON=/usr/bin/python2 +} + +package_python-systemd() { + depends=(python3 libsystemd) + + cd python3 + python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} + +package_python2-systemd() { + depends=(python2 libsystemd) + + cd python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} Property changes on: python-systemd/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
