summaryrefslogtreecommitdiffstats
path: root/testing/deadbeef/APKBUILD
blob: 10e4533654386b6806e25ad794988ee633e76c20 (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
45
46
47
48
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=deadbeef
pkgver=0.4.4
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"
makedepends="$depends_dev intltool"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.bz2
	deadbeef-execinfo.patch
	deadbeef-junklib.patch"

_builddir="${srcdir}/${pkgname}-${pkgver}"
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" ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-sid \
		--disable-ffap || return 1
	echo "#undef HAVE_ICONV" >> config.h
	echo "#define HAVE_ICONV 0" >> config.h
	make || return 1
}

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

md5sums="546e63d456d6a5625461019b15501e38  deadbeef-0.4.4.tar.bz2
0df7ea65269c41789b3b22520c7b0e0a  deadbeef-execinfo.patch
c0335b0d2561e4f7d594eaa3ba695ace  deadbeef-junklib.patch"