From a028918112883712ca4859f6457cd0ba2bb1710f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 28 Mar 2014 20:45:18 +0100 Subject: add python3-xlib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python3-xlib/PKGBUILD | 29 +++++++++++++++++++++++++++++ python3-xlib/python3-xlib.install | 20 ++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 python3-xlib/PKGBUILD create mode 100644 python3-xlib/python3-xlib.install (limited to 'python3-xlib') 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" +} + diff --git a/python3-xlib/python3-xlib.install b/python3-xlib/python3-xlib.install new file mode 100644 index 0000000..64a3f36 --- /dev/null +++ b/python3-xlib/python3-xlib.install @@ -0,0 +1,20 @@ +_file="python-xlib" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + -- cgit v1.2.3-70-g09d2