PKGBUILDs/community/python-xcffib/PKGBUILD

39 lines
1.1 KiB
Bash
Raw Normal View History

# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Roger Duran <rogerduran@gmail.com>
# ALARM: dequis <dx@dxzone.com.ar>
# - remove haskell-xcffib dependency by using the pypi release instead
2020-05-13 12:51:09 +00:00
pkgname=python-xcffib
pkgver=0.9.0
2020-05-13 12:51:09 +00:00
pkgrel=2
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
arch=('any')
url="https://pypi.python.org/pypi/xcffib"
license=('Apache')
2020-05-13 12:51:09 +00:00
depends=('python-six' 'python-cffi' 'libxcb')
makedepends=('python-setuptools' 'python-cffi' 'python-six' 'libxcb')
checkdepends=('python-nose' 'xorg-server-xvfb' 'xorg-xeyes')
_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha512sums=('e5891f080fcf1df596c37bb64a70e0de4a41d83b4675dac3b1c128656ab1b09d865e3ab0bfe0e5cc523e89a75dc6127dfc455ab66ca543ba6eeae9ee5bdae168')
prepare() {
touch xcffib-$pkgver/test/__init__.py
}
build() {
cd "$srcdir"/xcffib-$pkgver
python setup.py build
}
check() {
cd "$srcdir"/xcffib-$pkgver
xvfb-run nosetests3
}
2020-05-13 12:51:09 +00:00
package() {
cd xcffib-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
}