blob: 1a7118a816c83591aed22aaf7b912f2497390c8a (
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
32
33
34
35
36
37
|
# Maintainer: haxibami <contact at haxibami dot net>
pkgname=python-lzfse
_pkgname="${pkgname#python-}"
pkgver=0.4.2
pkgrel=1
pkgdesc='Python bindings for the LZFSE reference implementation'
arch=('any')
url='https://github.com/m1stadev/lzfse'
license=('MIT' 'BSD-3-Clause')
depends=('python')
makedepends=('git' 'python-build' 'python-wheel' 'python-installer' 'python-setuptools')
source=(
"${pkgname}-${pkgver}::git+${url}.git#tag=v${pkgver}"
"git+https://github.com/lzfse/lzfse.git#commit=88e2d2788b4021d0b2eb9fe2d97352ae9190f128"
)
sha256sums=('362ac868ae1fbdf4e306fbecf4e945760db0dd2f51481e04c2ea756e2356074e'
'b298e890b2565994424e0b4b56af1f8620c7ca223df35e442ad09448d6fe9cec')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
git submodule init
git config submodule.lzfse.url "${srcdir}/lzfse"
git -c protocol.file.allow=always submodule update
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
install -Dm644 LICENSE.lzfse "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.lzfse"
}
|