Date: Thursday, October 12, 2017 @ 13:56:31 Author: alad Revision: 262457
Added to community Added: python-i3-py/ python-i3-py/repos/ python-i3-py/trunk/ python-i3-py/trunk/PKGBUILD ----------+ PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) Added: python-i3-py/trunk/PKGBUILD =================================================================== --- python-i3-py/trunk/PKGBUILD (rev 0) +++ python-i3-py/trunk/PKGBUILD 2017-10-12 13:56:31 UTC (rev 262457) @@ -0,0 +1,56 @@ +# Maintainer: Alad Wenter <a...@mailbox.org> +# Contributor: willemw <willem...@gmail.com> +# Contributor: Anntoin Wilkinson <anntoin gmail com> + +pkgbase=python-i3-py +pkgname=('python-i3-py' 'python2-i3-py' 'python-i3-py-examples') +pkgver=0.6.5 +# https://github.com/ziberna/i3-py/issues/22 +_commit=27f88a616e9ecc340e7d041d3d00782f8a1964c1 +pkgrel=3 +pkgdesc="tools for i3 users and developers" +arch=('any') +url='https://github.com/ziberna/i3-py' +makedepends=('git' 'python' 'python2') +source=("$pkgbase::git+https://github.com/ziberna/i3-py#commit=$_commit" + 'LICENSE::http://www.wtfpl.net/txt/copying/') +md5sums=('SKIP' + '8365d07beeb5f39d87e846dca3ae7b64') + +prepare() { + cp -a "$pkgbase" "$pkgbase"-python2 +} + +build() { + cd "$pkgbase" + python setup.py build + + cd ../"$pkgbase"-python2 + python2 setup.py build +} + +package_python-i3-py() { + depends=('python' 'i3-wm') + license=('GPL3') + + cd "$pkgbase" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-i3-py() { + depends=('python2' 'i3-wm') + license=('GPL3') + + cd "$pkgbase"-python2 + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python-i3-py-examples() { + depends=('python-i3-py') + license=('GPL3' 'custom:WTFPL2') + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname" + install -Dm644 "$pkgbase"/examples/*.py -t "$pkgdir"/usr/share/python-i3-py/examples +} + +# vim: set et sw=4 sts=4 ft=sh: Property changes on: python-i3-py/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property