[arch-commits] Commit in (4 files)
Maxim Baz
maximbaz at archlinux.org
Fri Nov 15 09:28:39 UTC 2019
Date: Friday, November 15, 2019 @ 09:28:39
Author: maximbaz
Revision: 528995
add python-i3ipc
Added:
python-i3ipc/
python-i3ipc/repos/
python-i3ipc/trunk/
python-i3ipc/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: python-i3ipc/trunk/PKGBUILD
===================================================================
--- python-i3ipc/trunk/PKGBUILD (rev 0)
+++ python-i3ipc/trunk/PKGBUILD 2019-11-15 09:28:39 UTC (rev 528995)
@@ -0,0 +1,31 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Stick <stick at stma.is>
+
+_name=i3ipc-python
+pkgname=python-i3ipc
+pkgver=2.1.1
+pkgrel=2
+pkgdesc='An improved Python library to control i3wm'
+arch=('any')
+url="https://github.com/altdesktop/${_name}"
+license=('BSD')
+conflicts=('i3ipc-python')
+replaces=('i3ipc-python')
+depends=('python' 'python-xlib')
+makedepends=('python-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/altdesktop/${_name}/archive/v${pkgver}.tar.gz")
+sha256sums=('0dcd46519603ce3e52c4ae69e50efe1e7a31c03af15e0b9b639055de40daff15')
+
+build() {
+ cd "${_name}-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${_name}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm755 -t "${pkgdir}/usr/share/doc/${pkgname}/examples" examples/*.py
+ install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
+}
+
+# vim:set ts=4 sw=4 et:
More information about the arch-commits
mailing list