blob: fc6b570e24c6988500390fc61a1393405062b3bb (
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: AkechiShiro <akechishiro-aur at lahfa dot xyz>
_pyname=python-lzo
pkgname=python-${_pyname}-git
pkgver=v1.16
pkgrel=1
pkgdesc='Python bindings for the LZO data compression library'
arch=('any')
url="https://github.com/jd-boyd/$_pyname"
license=(GPL)
depends=(python)
conflicts=()
provides=(python-python-lzo)
makedepends=(git lzo python-pip python-build python-installer python-wheel python-setuptools)
checkdepends=()
source=("git+https://github.com/jd-boyd/$_pyname")
sha256sums=(SKIP)
# Tags are not up to date see issue : https://github.com/jd-boyd/python-lzo/issues/68
#pkgver() {
# cd "$_pyname"
# git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
#}
prepare() {
git -C "${srcdir}/${_pyname}" clean -dfx
}
build() {
cd "$_pyname"
python -m build --wheel --no-isolation
}
package() {
cd "$_pyname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|