aboutsummaryrefslogtreecommitdiffstats
path: root/main/pianobar/APKBUILD
blob: 71fccdf9e68043ca24a6540f48ab69a8c38eafa0 (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.07.09
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-aaf5ca3"
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="12efcaa3eb6397d483f64771c080ad33  pianobar-2011.07.09.tar.gz"