desktop/python-xlib/PKGBUILD
2016-09-25 13:24:54 -05:00

36 lines
1.0 KiB
Bash

#
# Apps Packages for Chakra, part of chakraos.org
#
# maintainer: george <george[at]chakra-project[dot]org>
# contributor: Neo Kolokotronis <tetris4@gmail.com>
# contributor: Jeff Mickey <jeff@archlinux.org>
# contributor: Pappa < jcberg @ gmail . com >
pkgbase=python-xlib
pkgname=('python3-xlib' 'python2-xlib')
_pkgname=python-xlib
pkgver=0.17
pkgrel=1
pkgdesc='A fully functional X client library for Python programs.'
url='http://python-xlib.sourceforge.net/'
arch=('any')
license=('GPL')
makedepends=('python2' 'python3' 'python2-setuptools' 'python3-setuptools')
source=("https://github.com/python-xlib/${pkgbase}/archive/${pkgver}.tar.gz")
md5sums=('b883c34ea198095cc965be19bbba63ab')
package_python2-xlib() {
depends+=('python2')
provides=('python-xlib')
conflicts=('python-xlib')
replaces=('python-xlib')
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}"
}
package_python3-xlib() {
depends+=('python3')
cd "${srcdir}/${_pkgname}-${pkgver}"
python3 setup.py install --root="${pkgdir}"
}