aboutsummaryrefslogtreecommitdiffstats
path: root/main/mutagen/APKBUILD
blob: 89797b02b3f769df363478a21685254086dae25f (plain) (blame)
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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mutagen
pkgver=1.34.1
pkgrel=1
pkgdesc="An audio metadata tag reader and writer implemented in pure python"
url="https://github.com/quodlibet/mutagen"
arch="noarch"
license="GPL2"
depends="python2 py-mutagen"
makedepends="python2-dev"
subpackages="$pkgname-doc py-$pkgname:py"
source="$pkgname-$pkgver.tar.gz::https://github.com/quodlibet/$pkgname/archive/release-$pkgver.tar.gz"

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

build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --root="$pkgdir"
}

py() {
	pkgdesc="Python library for mutagen"
	depends="python2"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

sha512sums="6a792230ebb6a040408ad066096823440a78a7bf0f358f9c888cb575d3d82b96a40611f58ba4b9265fce6870788446488619bd7e6b107d0ffd7e402bf4b8c332  mutagen-1.34.1.tar.gz"