aboutsummaryrefslogtreecommitdiffstats
path: root/community/beets/APKBUILD
blob: d341a4c87b4e2daae801dad7f94e985d2da3413d (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=beets
pkgver=1.4.5
pkgrel=0
pkgdesc="music library manager and MusicBrainz tagger"
url="http://beets.io"
arch="noarch"
license="MIT"
depends="python2 py-mutagen py-unidecode py-musicbrainzngs py-munkres
	py-setuptools py-enum34 py-yaml py-jellyfish"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://github.com/sampsyo/beets/releases/download/v$pkgver/beets-$pkgver.tar.gz"

_builddir="$srcdir"/beets-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

sha512sums="b1ec96bf90e9e11be70085af87fe124ca52bf939ea5334379eb8f42b948cb2f534afc804428e3b928439e92fbd46e6fc1a00a71b16f9f35646ef6e94a6f9148c  beets-1.4.5.tar.gz"