summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 84d5b57bde4d4a173725b04766d3dbfe090472e6 (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@hotmail.com>

pkgname=python-indexed-bzip2
pkgver=1.5.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')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
options=(!emptydirs)
_tag=84290abde51e5786feaf6869baf44657ce450f5f
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"
}