blob: 2859d2be977803ec25fcba53afffd5801c0dad81 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mutagen
pkgver=1.40.0
pkgrel=0
pkgdesc="An audio metadata tag reader and writer implemented in pure python"
url="https://github.com/quodlibet/mutagen"
arch="noarch"
license="GPL-2.0"
depends="python2 py-mutagen"
makedepends="python2-dev"
checkdepends="py2-pytest py-setuptools py2-hypothesis"
subpackages="$pkgname-doc py-$pkgname:py"
source="$pkgname-$pkgver.tar.gz::https://github.com/quodlibet/$pkgname/archive/release-$pkgver.tar.gz"
# we dont have all the needed deps for running the test suite yet
options="!check"
builddir="$srcdir/$pkgname-release-$pkgver"
build() {
cd "$builddir"
python2 setup.py build
}
package() {
cd "$builddir"
python2 setup.py install --root="$pkgdir"
}
check() {
cd "$builddir"
python2 setup.py test
}
py() {
pkgdesc="Python library for mutagen"
depends="python2"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
sha512sums="f167eabf8885d822f8e11c34720e24ad49b696d7c479ab957a4c6e84a6feb025c69175352cea610da6b119d11b66fe0fd225b95ce522d7c73f000d6bfffef77c mutagen-1.40.0.tar.gz"
|