summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7f16423d51d5ccce7cc9525431fa3d0ba4c28fb (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
# Maintainer: Joaquin Colonnello <joaquincolonnello [at] hotmail [dot] com>

pkgname=python-indexed-bzip2
pkgver=1.6.0
pkgrel=2
pkgdesc="A parallelized bzip2 decoder with seek capability"
arch=('x86_64')
url="https://github.com/mxmlnkn/indexed_bzip2"
license=('MIT')
depends=('python' 'cython')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
options=(!emptydirs)
_tag=0107ef756d2ad5aba8cc6b0d05fc32244fefbe9d
source=("${pkgname}-${pkgver}::git+${url}.git#tag=$_tag")
provides=("indexed_bzip2")
sha384sums=('SKIP')

prepare() {
    cd "$srcdir/${pkgname}-${pkgver}"
    git submodule update --init
}

build() {
    cd "$srcdir/${pkgname}-${pkgver}/python/indexed_bzip2"
    python -m build --wheel --no-isolation
}

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