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

Evangelos Foutras foutrelis at archlinux.org
Mon Jul 23 15:32:00 UTC 2018


    Date: Monday, July 23, 2018 @ 15:32:00
  Author: foutrelis
Revision: 363024

archrelease: copy trunk to community-staging-any

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

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

Copied: python-i3-py/repos/community-staging-any/PKGBUILD (from rev 363023, python-i3-py/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-23 15:32:00 UTC (rev 363024)
@@ -0,0 +1,54 @@
+# $Id$
+# 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')
+pkgver=0.6.5
+# https://github.com/ziberna/i3-py/issues/22
+_commit=27f88a616e9ecc340e7d041d3d00782f8a1964c1
+pkgrel=6
+pkgdesc="tools for i3 users and developers"
+arch=('any')
+url='https://github.com/ziberna/i3-py'
+license=('GPL3' 'custom:WTFPL2')
+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')
+
+    cd "$pkgbase"
+    python setup.py install --root="$pkgdir/" --optimize=1
+
+    install -Dm644 "$srcdir"/LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
+    install -Dm644 examples/*.py -t "$pkgdir"/usr/share/"$pkgname"/examples
+}
+
+package_python2-i3-py() {
+    depends=('python2' 'i3-wm')
+
+    cd "$pkgbase"-python2
+    python2 setup.py install --root="$pkgdir/" --optimize=1
+
+    install -Dm644 "$srcdir"/LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
+    install -Dm644 examples/*.py -t "$pkgdir"/usr/share/"$pkgname"/examples
+}
+
+# vim: set et sw=4 sts=4 ft=sh:



More information about the arch-commits mailing list