APKBUILD 2.13 KB
Newer Older
1 2 3
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=audacious-plugins
4
pkgver=3.3.4
5
pkgrel=1
6 7 8 9 10
pkgdesc="playlist-oriented media player with multiple interfaces (plugins)"
url="http://audacious-media-player.org/"
arch="all"
license="ISC"
depends=audacious
11
install_if=audacious
12
_want_ffmpeg="ffmpeg-dev"
13 14 15 16
makedepends="libmowgli-dev
             libguess-dev
             gtk+-dev
             dbus-glib-dev
17
             audacious-dev>=${pkgver%.*}
18 19
             libxml2-dev

20 21
             mpg123-dev

22
	     libcdio-dev
23
	     libcdio-paranoia-dev
24 25
	     libcddb-dev

26 27 28
	     libxcomposite-dev
	     libsamplerate-dev
	     libcue-dev
29
	     libmms-dev
30
	     libsndfile-dev
31

32 33
	     libnotify-dev

34
	     libogg-dev
35
             libvorbis-dev
36 37 38

	     $_want_ffmpeg

39 40 41 42 43 44
             alsa-lib-dev
	     faad2-dev
             neon-dev
             curl-dev
             wavpack-dev
	     lame-dev
45
	     flac-dev
46
	     sdl-dev
47

48
	     automake
49
	     autoconf"
50
install=
51
subpackages="$pkgname-lang"
52
source="http://distfiles.audacious-media-player.org/$pkgname-$pkgver.tar.bz2"
53

54
_builddir="$srcdir"/$pkgname-$pkgver
55 56 57

prepare() {
	cd "$_builddir"
58
	update_config_sub || return 1
59 60 61 62 63 64 65 66 67

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

69
	msg "Rebuilding configure..."
70
	aclocal -I m4 && autoheader && autoconf || return 1
71

72 73 74
	# workaround bug in busybox
	sed -e "/touch/s/0001010000/200001010000/g" \
		-i configure
75 76 77 78
}

build() {
	cd "$_builddir"
79 80 81 82
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
83 84 85
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
86
		|| return 1
87 88 89 90 91 92 93 94
	make || return 1
}

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

95 96 97
md5sums="c7fc344b802557cbbe208c31e5289ef1  audacious-plugins-3.3.4.tar.bz2"
sha256sums="b66dd84ab092d9fb64182599706ed60a3c382c904a77e23285e1e271f007afd0  audacious-plugins-3.3.4.tar.bz2"
sha512sums="4e3ba9adc4f44c3f02934a98d5c3225ae560e062b1e1f93e478770c8ea7f6e741a9cf83ae2ec34a05ac4c40dd08d0cf732e41029fa88bc37014bb8bbe1c1a681  audacious-plugins-3.3.4.tar.bz2"