aboutsummaryrefslogtreecommitdiffstats
path: root/main/audacious/APKBUILD
blob: a823e675d5d6db5c540dbb837db52fb00d338ff5 (plain) (blame)
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
49
50
51
52
53
54
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=audacious
pkgver=2.5.0
pkgrel=1
pkgdesc="playlist-oriented media player with multiple interfaces"
url="http://audacious-media-player.org/"
arch="all"
license="ISC"
depends=
makedepends="libmowgli-dev libmcs-dev libguess-dev gtk+-dev dbus-glib-dev libxml2-dev"
install=
subpackages="$pkgname-dev"
source="http://distfiles.atheme.org/$pkgname-$pkgver.tgz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"

	for i in $source; do
		case $i in
		*.patch)
			msg "Applying $i..."
			patch -s -p1 -N -i "$srcdir"/$i || return 1
			;;
		esac
	done

	# workaround bug in busybox
	sed -e "/touch/s/0001010000/200001010000/g" \
		-i configure
}

build() {
	cd "$_builddir"
	LIBS="-lubacktrace" ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-chardet
	make || return 1
}

package() {
	cd "$_builddir"

	# bleah...
	mkdir $pkgdir/usr/bin

	make DESTDIR="$pkgdir" install
}

md5sums="86ee51499b2c44ca6d2f4f19072c8114  audacious-2.5.0.tgz"