diff options
author | alienzj | 2019-11-28 10:08:44 +0800 |
---|---|---|
committer | alienzj | 2019-11-28 10:08:44 +0800 |
commit | 0d4861da4e61c89902d92b4b3698ddbdb7b9b5d6 (patch) | |
tree | a6b325bce58735b997097dacf20330a82993bcad /PKGBUILD | |
download | aur-python-datrie-git.tar.gz |
add python-datrie-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e4d684700264 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: alienzj <alienchuj@gmail.com> + +pkgname=python-datrie-git +pkgver=0.8.r2.gfa3cfc3 +pkgrel=1 +pkgdesc="Fast, efficiently stored Trie for Python. Uses libdatrie" +arch=('x86_64') +url="https://github.com/pytries/datrie" +license=('LGPL') +depends=('libdatrie') +makedepends=('python-setuptools' 'cython') +checkdepends=('python-pytest-runner' 'python-hypothesis') +conflicts=("python-datrie" "datrie" "datrie-git") +source=("git+https://github.com/pytries/datrie.git") +sha512sums=('SKIP') + +prepare() { + cd $srcdir/datrie + git submodule init + git submodule update + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + #sed -i 's|../libdatrie/||g' src/cdatrie.pxd + #sed -i 's|../libdatrie/||g' src/cdatrie.c + #sed -i 's|../libdatrie/||g' src/datrie.c +} + +build() { + cd $srcdir/datrie + ./update_c.sh + python setup.py build +} + +check() { + msg2 "Running tests on python-datrie" + cd $srcdir/datrie + python setup.py pytest +} + +package() { + cd $srcdir/datrie + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build +} |