blob: a0c0a495d3c17e39d6664509a5e13d11fee37040 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Frederik "Freso" S. Olesen <archlinux@freso.dk>
# Contributor: Johannes Dewender arch at JonnyJD dot net
_pkgname=isrcsubmit
pkgname=$_pkgname-git
pkgver=2.1.0.r24.g8f4c3b9
pkgver(){
cd "$srcdir/$pkgname"
git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc="submit ISRCs from disc to MusicBrainz"
arch=('any')
url="https://github.com/JonnyJD/musicbrainz-isrcsubmit"
license=('GPL3')
depends=('python' 'python-musicbrainzngs>=0.4' 'python-discid>=1.0.0')
makedepends=('git' python-build python-installer python-wheel
'python-setuptools' 'python-sphinx')
optdepends=(
"python-keyring: Keyring integration."
)
provides=('isrcsubmit')
conflicts=('isrcsubmit')
replaces=('isrcsubmit-python2-git' 'isrcsubmit-python-git')
options=(!emptydirs)
source=("$pkgname::git+https://github.com/JonnyJD/musicbrainz-isrcsubmit.git")
md5sums=('SKIP')
prepare() {
# Clean potential old build etc. artifacts
git -C "${srcdir}/${pkgname}" clean -dfx
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname"
python setup.py test
}
package() {
cd "$srcdir/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -d "$pkgdir/usr/share/doc/$_pkgname"
install -m644 -t "$pkgdir/usr/share/doc/$_pkgname" AUTHORS CHANGES.* COPYING README.*
}
# vim:set ts=2 sw=2 et:
|