aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pianobar/APKBUILD
blob: edc32c116e16fcb1b5029e16ef93c75c35a68417 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pianobar
pkgver=2011.04.10
pkgrel=0
pkgdesc="commandline player for pandora webradio"
url="https://github.com/PromyLOPh/pianobar"
arch="all"
license="MIT"
depends=
depends_dev="faad2-dev libmad-dev libao-dev"
makedepends="$depends_dev wget"
install=""
subpackages="$pkgname-doc"
source="saveas-https://github.com/PromyLOPh/pianobar/tarball/${pkgver}/pianobar-${pkgver}.tar.gz"

_builddir="${srcdir}/PromyLOPh-pianobar-8503f28"
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"
	make CC='gcc -std=c99' PREFIX="/usr" || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" PREFIX="/usr" install || return 1
}

md5sums="813d3a9ee5dc23d6a68dd2a020096d06  pianobar-2011.04.10.tar.gz"