aboutsummaryrefslogtreecommitdiffstats
path: root/main/pianobar/APKBUILD
blob: 3eb2e14b3a842817e36f164d8df939e447bb0d2d (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: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pianobar
pkgver=2014.09.28
pkgrel=0
pkgdesc="commandline player for pandora webradio"
url="https://github.com/PromyLOPh/pianobar"
arch="all"
license="MIT"
depends=
depends_dev="ffmpeg-dev libao-dev libgcrypt-dev gnutls-dev json-c-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="pianobar-${pkgver}.tar.gz::https://github.com/PromyLOPh/pianobar/tarball/${pkgver}"

_builddir="${srcdir}/PromyLOPh-pianobar-5b9e0d9"
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="82a6c9a9031ad7284130fad15411da47  pianobar-2014.09.28.tar.gz"
sha256sums="7ddc7a651f0185451f7c457dcb9587c445d1a738a620bc16fb358f68f8938d2b  pianobar-2014.09.28.tar.gz"
sha512sums="b36825098658358d0c760075da0ce10c4fbe6722e371d4bd54b5d11e3e20d5be523388db6f427196a60455becda18b04cdd517b550b3a367d9ea88d40e978427  pianobar-2014.09.28.tar.gz"