blob: 4dae744448c707ffae7675fdd887e87753c5b2b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
pkgname=python-cymbal-git
_module='cymbal'
pkgver=r11.f0c7e7d
pkgrel=1
pkgdesc="makes it easy to add functionality missing from libclang Python bindings"
url="https://github.com/AndrewWalker/cymbal"
provides=(python-cymbal)
conflicts=(python-cymbal)
depends=(python)
makedepends=(python-setuptools)
license=('MIT')
arch=('any')
source=("git://github.com/AndrewWalker/cymbal.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_module"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${_module}"
python setup.py build
}
package() {
cd "${srcdir}/${_module}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
rm -rf "${pkgdir}/$(python -c 'import sys; print(sys.path[-1])')/tests"
}
|