aboutsummaryrefslogtreecommitdiffstats
path: root/testing/deadbeef/APKBUILD
blob: 95c7de16fcb6711063533537944a3a1938d6aa90 (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
41
42
43
44
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=deadbeef
pkgver=0.5.0_rc1
pkgrel=0
pkgdesc="fairly capable playlist-oriented audio player"
url="http://deadbeef.sourceforge.net/"
arch="all"
license="GPL"
depends=
depends_dev="gtk+-dev libmad-dev alsa-lib-dev ffmpeg-dev libsamplerate-dev gettext-dev libiconv-dev"
makedepends="$depends_dev intltool"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-0.5.0-rc1.tar.bz2
	deadbeef-junklib.patch"

_builddir="${srcdir}/${pkgname}-0.5.0-rc1"
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"
	LIBS="-lintl -lubacktrace" ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-sid \
		--disable-ffap || return 1
	make || return 1
}

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

md5sums="ec8100402338d075ff39e714e99e5543  deadbeef-0.5.0-rc1.tar.bz2
8bf4eb1c52f251da7c7a78b2bb021359  deadbeef-junklib.patch"