mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 23:34:40 +08:00
55 lines
1.3 KiB
Bash
55 lines
1.3 KiB
Bash
|
|
# Maintainer: AlmAck <almack@chakraos.org>
|
|
|
|
pkgbase=python-xcffib
|
|
pkgname=(python3-xcffib python2-xcffib)
|
|
pkgver=0.3.6
|
|
pkgrel=1
|
|
pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
|
|
arch=('x86_64')
|
|
url="https://pypi.python.org/pypi/xcffib"
|
|
license=('Apache')
|
|
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-cffi' 'python2-cffi'
|
|
'python3-six' 'python2-six' 'libxcb' 'git' 'ghc' 'haskell-xcb-types'
|
|
'haskell-language-python' 'haskell-filemanip' 'haskell-split'
|
|
'haskell-mtl' 'haskell-attoparsec' 'haskell-hunit' 'cabal-install'
|
|
'haskell-test-framework' 'haskell-test-framework-hunit'
|
|
'haskell-optparse-applicative')
|
|
source=("git+https://github.com/tych0/xcffib.git#tag=v$pkgver")
|
|
md5sums=('SKIP')
|
|
|
|
prepare() {
|
|
cp -a xcffib-$pkgver{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/xcffib"
|
|
make xcffib
|
|
|
|
cd "$srcdir/xcffib-py2"
|
|
make xcffib
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/xcffib"
|
|
make check
|
|
|
|
cd "$srcdir/xcffib-py2"
|
|
make check
|
|
}
|
|
|
|
|
|
package_python3-xcffib() {
|
|
depends=('python3-six' 'python3-cffi' 'libxcb')
|
|
|
|
cd "$srcdir/xcffib-$pkgver"
|
|
python3 setup.py install --root="$pkgdir/" --optimize=1
|
|
}
|
|
|
|
package_python2-xcffib() {
|
|
depends=('python2-six' 'python2-cffi' 'libxcb')
|
|
|
|
cd "$srcdir/xcffib-$pkgver-py2"
|
|
python2 setup.py install --root="$pkgdir/" --optimize=1
|
|
}
|