mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/python-xcffib to 0.9.0-2
This commit is contained in:
parent
edbbc1d147
commit
98b65ab430
1 changed files with 6 additions and 24 deletions
|
@ -4,53 +4,35 @@
|
||||||
# ALARM: dequis <dx@dxzone.com.ar>
|
# ALARM: dequis <dx@dxzone.com.ar>
|
||||||
# - remove haskell-xcffib dependency by using the pypi release instead
|
# - remove haskell-xcffib dependency by using the pypi release instead
|
||||||
|
|
||||||
pkgbase=python-xcffib
|
pkgname=python-xcffib
|
||||||
pkgname=(python-xcffib python2-xcffib)
|
|
||||||
pkgver=0.9.0
|
pkgver=0.9.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
|
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://pypi.python.org/pypi/xcffib"
|
url="https://pypi.python.org/pypi/xcffib"
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi' 'python-six'
|
depends=('python-six' 'python-cffi' 'libxcb')
|
||||||
'python2-six' 'libxcb')
|
makedepends=('python-setuptools' 'python-cffi' 'python-six' 'libxcb')
|
||||||
checkdepends=('python-nose' 'python2-nose' 'xorg-server-xvfb' 'xorg-xeyes')
|
checkdepends=('python-nose' 'xorg-server-xvfb' 'xorg-xeyes')
|
||||||
_name=${pkgname#python-}
|
_name=${pkgname#python-}
|
||||||
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
|
||||||
sha512sums=('e5891f080fcf1df596c37bb64a70e0de4a41d83b4675dac3b1c128656ab1b09d865e3ab0bfe0e5cc523e89a75dc6127dfc455ab66ca543ba6eeae9ee5bdae168')
|
sha512sums=('e5891f080fcf1df596c37bb64a70e0de4a41d83b4675dac3b1c128656ab1b09d865e3ab0bfe0e5cc523e89a75dc6127dfc455ab66ca543ba6eeae9ee5bdae168')
|
||||||
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
touch xcffib-$pkgver/test/__init__.py
|
touch xcffib-$pkgver/test/__init__.py
|
||||||
cp -a xcffib-$pkgver{,-py2}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir"/xcffib-$pkgver
|
cd "$srcdir"/xcffib-$pkgver
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
cd "$srcdir"/xcffib-$pkgver-py2
|
|
||||||
python2 setup.py build
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd "$srcdir"/xcffib-$pkgver
|
cd "$srcdir"/xcffib-$pkgver
|
||||||
xvfb-run nosetests3
|
xvfb-run nosetests3
|
||||||
|
|
||||||
cd "$srcdir"/xcffib-$pkgver-py2
|
|
||||||
xvfb-run nosetests2
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package_python-xcffib() {
|
package() {
|
||||||
depends=('python-six' 'python-cffi' 'libxcb')
|
|
||||||
|
|
||||||
cd xcffib-$pkgver
|
cd xcffib-$pkgver
|
||||||
python setup.py install --root="$pkgdir/" --optimize=1
|
python setup.py install --root="$pkgdir/" --optimize=1
|
||||||
}
|
}
|
||||||
|
|
||||||
package_python2-xcffib() {
|
|
||||||
depends=('python2-six' 'python2-cffi' 'libxcb')
|
|
||||||
|
|
||||||
cd xcffib-$pkgver-py2
|
|
||||||
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue