summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d997b7e4a0960bf420497302d67689e23865b4f3 (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
# Maintainer:  Misaka13514 <Misaka13514 at gmail dot com>

pkgname=python-lzf
_name=${pkgname}
pkgver=0.2.6
pkgrel=2
pkgdesc="C Extension for liblzf"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/teepark/python-lzf"
license=('BSD-3-Clause')
depends=('glibc')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/release-$pkgver.tar.gz")
sha256sums=('19716a98e02a4f2835902642d5f276950131b019737f58b45373d721c10b8190')

build() {
    cd "$_name-release-$pkgver"
    python -m build --wheel --no-isolation
}

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