summaryrefslogtreecommitdiffstats
path: root/testing/pianobar/APKBUILD
blob: b55d0b672d7f05ad97561c144b2aba940029e0e3 (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.27
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-ab5b89a"
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="344d4c6957198357bf263629650f0597  pianobar-2011.04.27.tar.gz"