mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# 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
|
|
|
|
pkgname=python-xcffib
|
|
pkgver=1.3.0
|
|
_commit=76b0c03597ee59fd4109a671d8c536842f904b4c
|
|
pkgrel=1
|
|
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
|
|
arch=('any')
|
|
url="https://pypi.python.org/pypi/xcffib"
|
|
license=('Apache')
|
|
depends=('python-cffi' 'libxcb')
|
|
makedepends=('python-setuptools')
|
|
checkdepends=('python-pytest' 'xorg-server-xvfb' 'xorg-xeyes')
|
|
_name=${pkgname#python-}
|
|
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
|
sha512sums=('7012833f2877edea92cdc15030543883e2a848264c034a81222626ad48a69fcdac8a88cec2e07e61a80102640baa7fbdf29bbf25e08e59fc896aada08533bb77')
|
|
|
|
prepare() {
|
|
touch xcffib-$pkgver/test/__init__.py
|
|
}
|
|
|
|
build() {
|
|
cd xcffib-$pkgver
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd xcffib-$pkgver
|
|
xvfb-run pytest
|
|
}
|
|
|
|
package() {
|
|
cd xcffib-$pkgver
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
|
}
|