desktop/python-xlib/PKGBUILD

36 lines
1017 B
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.15rc1
pkgrel=2
pkgdesc='A fully functional X client library for Python programs.'
url='http://python-xlib.sourceforge.net/'
arch=('any')
license=('GPL')
makedepends=('python2' 'python3')
source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
md5sums=('7941e91bc3e92dc921dfc930cc8f7830')
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}"
}