summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b6d63546bee01e4965a2558fb1cb54430dc586b (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
# Maintainer: AlphaJack <alphajack at tuta dot io>

pkgname="python-pygtrie-git"
pkgver=2.4.2.r0.g0c8b2b6
pkgrel=1
pkgdesc="Python library implementing a trie data structure. Only builds the Python 3 version"
url="https://github.com/mina86/pygtrie"
license=("Apache")
arch=("any")
provides=("python-pygtrie" "python-pygtrie-git")
conflicts=("python-pygtrie")
depends=("python")
makedepends=("python-setuptools" "git")
source=("git+$url")
sha256sums=("SKIP")

pkgver(){
 cd "pygtrie"
 git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g;s/^v//"
}

build(){
 cd "pygtrie"
 python setup.py build
}

package(){
 cd "pygtrie"
 python setup.py install --root="$pkgdir" --optimize=1
}