aboutsummaryrefslogtreecommitdiffstats
path: root/community/mutagen/APKBUILD
blob: 96be406010b260ef32488d53d86e298b4ed12b15 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mutagen
pkgver=1.42.0
pkgrel=2
pkgdesc="Audio tagger implemented in Python"
url="https://github.com/quodlibet/mutagen"
arch="noarch"
license="GPL-2.0-or-later"
depends="py3-mutagen"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-flake8 py3-hypothesis"
subpackages="$pkgname-doc py3-$pkgname:py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/quodlibet/mutagen/archive/release-$pkgver.tar.gz
	fix-pep8.patch::https://github.com/quodlibet/mutagen/commit/0ee86ef9d7e06639a388d0638732810b79998608.patch"

builddir="$srcdir/$pkgname-release-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

py3() {
	pkgdesc="Python3 library for $pkgname"
	replaces="py-mutagen" # for backwards compatibility
	provides="py-mutagen=$pkgver-r$pkgrel" # for backwards compatibility

	depends="python3"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

sha512sums="abb7fdb93f6f844c9b609f2544229e8d3d7a20a0158c494ca3c6393d9e26c73b32863f4b8bd5382e33493534e24a46770a7c187b7d453f526c15aeec0e851510  mutagen-1.42.0.tar.gz
29d5dccfed14f9db9bcd80a298f92b6831e5552edc4b106c20c4b0a4ad924983e36ccc866540cb49ba21340b0f29a4569a12ac0da6d3f5f263a91412641b6aeb  fix-pep8.patch"