2020-04-26 01:23:19 +00:00
|
|
|
# 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
|
2023-01-11 01:21:52 +00:00
|
|
|
pkgver=1.1.0
|
2022-09-27 23:48:23 +00:00
|
|
|
pkgrel=1
|
2020-04-26 01:23:19 +00:00
|
|
|
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
|
|
|
|
arch=('any')
|
|
|
|
url="https://pypi.python.org/pypi/xcffib"
|
|
|
|
license=('Apache')
|
2022-12-29 00:41:05 +00:00
|
|
|
depends=('python-cffi' 'libxcb')
|
2022-09-27 23:48:23 +00:00
|
|
|
makedepends=('python-setuptools')
|
|
|
|
checkdepends=('python-pytest' 'xorg-server-xvfb' 'xorg-xeyes')
|
2020-04-26 01:23:19 +00:00
|
|
|
_name=${pkgname#python-}
|
|
|
|
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
2023-01-11 01:21:52 +00:00
|
|
|
sha512sums=('7aed8fb876d23228070bf2253245aeae5754404e8a47513cb3545ff7b7738bac39a740d656669e09175d1a684b0c69c88a91a08650a21733de926a3f07da6d62')
|
2020-04-26 01:23:19 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
touch xcffib-$pkgver/test/__init__.py
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-12-15 18:35:59 +00:00
|
|
|
cd xcffib-$pkgver
|
2020-04-26 01:23:19 +00:00
|
|
|
python setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2020-12-15 18:35:59 +00:00
|
|
|
cd xcffib-$pkgver
|
2022-09-27 23:48:23 +00:00
|
|
|
xvfb-run pytest
|
2020-04-26 01:23:19 +00:00
|
|
|
}
|
|
|
|
|
2020-05-13 12:51:09 +00:00
|
|
|
package() {
|
2020-04-26 01:23:19 +00:00
|
|
|
cd xcffib-$pkgver
|
|
|
|
python setup.py install --root="$pkgdir/" --optimize=1
|
|
|
|
}
|