summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ced72adf2611943ee7d319820805e872075ffb7d (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Manolo Martínez <manolo@austrohungaro.com>

pkgname=python-stagger-git
_pkg=stagger
pkgver=1.0.0.r8.g6530db1
pkgrel=1
pkgdesc="ID3v1/ID3v2 tag manipulation package in pure Python 3"
arch=('any')
url="https://github.com/staggerpkg/stagger"
license=('BSD')
depends=('python')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('python-stagger')
conflicts=('python3-stagger-svn')
source=("$_pkg::git+$url")
md5sums=('SKIP')

pkgver() {
	git -C "$_pkg" describe --long --tags | sed 's/^release-//;s/-/.r/;s/-/./'
}

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

package() {
	cd "$_pkg"
	PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}