aboutsummaryrefslogtreecommitdiffstats
path: root/python3-xlib/PKGBUILD
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-28 20:45:18 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-28 20:45:18 +0100
commita028918112883712ca4859f6457cd0ba2bb1710f (patch)
tree0647161ba0b7354b05a60fc78c4d7385bfe458e0 /python3-xlib/PKGBUILD
parentupdate gitignore (diff)
downloadaur-packages-a028918112883712ca4859f6457cd0ba2bb1710f.tar.gz
aur-packages-a028918112883712ca4859f6457cd0ba2bb1710f.tar.bz2
aur-packages-a028918112883712ca4859f6457cd0ba2bb1710f.tar.xz
add python3-xlib
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'python3-xlib/PKGBUILD')
-rw-r--r--python3-xlib/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/python3-xlib/PKGBUILD b/python3-xlib/PKGBUILD
new file mode 100644
index 0000000..1063a1b
--- /dev/null
+++ b/python3-xlib/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=python3-xlib
+pkgver=0.14
+_commit=894729e50431e02939e44c92533fc292b6c69783
+pkgrel=2
+pkgdesc='Python 3 port of Xlib'
+arch=(any)
+url='https://github.com/LiuLang/python3-xlib'
+license=('GPL2')
+depends=('python')
+makedepends=('python')
+conflicts=('python-xlib')
+install=python3-xlib.install
+source=("${url}/archive/${_commit}.tar.gz")
+sha256sums=('0fe9b2430f30cd90b6bf6cd457db218c5cabb1a7e5f81744ea36a80e90938274')
+
+
+build() {
+ cd "${srcdir}/${pkgname}-${_commit}/doc"
+ make info
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${_commit}"
+ install -Dm644 doc/info/python-xlib.info "${pkgdir}/usr/share/info/python-xlib.info"
+ install -dm755 "${pkgdir}/usr/share/python-xlib"
+ cp -a examples "${pkgdir}/usr/share/python-xlib/examples"
+ python setup.py install --prefix=/usr --root="$pkgdir"
+}
+