summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca0dbdb95304a8961f750c8e664c1a66c80e1cca (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
# Maintainer: naether.markus[at]gmail.com

pkgname=python-sqltrie
pkgver=0.7.0
pkgrel=2
pkgdesc="SQL-based prefix tree implementation inspired by pygtrie and python-diskcache."
arch=('any')
url="https://github.com/iterative/sqltrie"
license=('Apache-2.0')
depends=(
	'python'
)
makedepends=(
	'python-build'
	'python-installer'
)
source=("sqltrie-${pkgver}::git+${url}.git#tag=${pkgver}")
sha256sums=(
	'SKIP'
)

build() {
	cd "${srcdir}/sqltrie-${pkgver}"
	python -m build --wheel --skip-dependency-check --no-isolation
}

package() {
    cd "$srcdir/sqltrie-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/sqltrie"
}