[arch-commits] Commit in python-i3-py/repos (2 files)

Alad Wenter alad at archlinux.org
Sat Oct 14 17:10:59 UTC 2017


    Date: Saturday, October 14, 2017 @ 17:10:58
  Author: alad
Revision: 262766

archrelease: copy trunk to community-testing-any

Added:
  python-i3-py/repos/community-testing-any/
  python-i3-py/repos/community-testing-any/PKGBUILD
    (from rev 262765, python-i3-py/trunk/PKGBUILD)

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

Copied: python-i3-py/repos/community-testing-any/PKGBUILD (from rev 262765, python-i3-py/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-10-14 17:10:58 UTC (rev 262766)
@@ -0,0 +1,56 @@
+# Maintainer: Alad Wenter <alad at mailbox.org>
+# Contributor: willemw <willemw12 at 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:



More information about the arch-commits mailing list