[arch-commits] Commit in python-i3-py/trunk (PKGBUILD)
Alad Wenter
alad at archlinux.org
Mon Oct 16 19:14:47 UTC 2017
Date: Monday, October 16, 2017 @ 19:14:45
Author: alad
Revision: 263100
upgpkg: python-i3-py 0.6.5-4
Remove -examples
Modified:
python-i3-py/trunk/PKGBUILD
----------+
PKGBUILD | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-10-16 18:07:20 UTC (rev 263099)
+++ PKGBUILD 2017-10-16 19:14:45 UTC (rev 263100)
@@ -4,14 +4,15 @@
# Contributor: Anntoin Wilkinson <anntoin gmail com>
pkgbase=python-i3-py
-pkgname=('python-i3-py' 'python2-i3-py' 'python-i3-py-examples')
+pkgname=('python-i3-py' 'python2-i3-py')
pkgver=0.6.5
# https://github.com/ziberna/i3-py/issues/22
_commit=27f88a616e9ecc340e7d041d3d00782f8a1964c1
-pkgrel=3
+pkgrel=4
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/')
@@ -32,26 +33,22 @@
package_python-i3-py() {
depends=('python' 'i3-wm')
- license=('GPL3')
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')
- 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
+ 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