summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a7953e9a1419597a0722564d31c8ef2eefecdcd (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
# Maintainer: dragon <drgn@fn.de>

pkgname=python-pyparsebluray
_pkgname=${pkgname#python-}
pkgver=0.1.4
pkgrel=1
pkgdesc="Parse and extract binary data from bluray files"
url="https://github.com/Ichunjo/pyparsebluray"
arch=(any)
license=(MIT)
depends=(python)
conflicts=(python-pyparsebluray-git)
makedepends=(git python-{build,wheel,installer,setuptools})
source=("git+$url#tag=$pkgver")
sha256sums=('SKIP')

build() {
	cd $_pkgname
	python -m build --wheel --no-isolation
}

package() {
	cd $_pkgname
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -D -m644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}