aboutsummaryrefslogtreecommitdiffstats
path: root/main/audacious-plugins/APKBUILD
blob: 7c62f27ee1ccc7f470cb70850b751319554a0edc (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=audacious-plugins
pkgver=3.5.2
pkgrel=0
pkgdesc="A playlist-oriented media player with multiple interfaces (plugins)"
url="http://audacious-media-player.org/"
arch="all"
license="ISC"
depends="audacious"
install_if="audacious"
_want_ffmpeg="ffmpeg-dev"
makedepends="libmowgli-dev
             libguess-dev
             gtk+-dev
             dbus-glib-dev
             audacious-dev>=${pkgver%.*}
             libxml2-dev

             mpg123-dev

	     libcdio-dev
	     libcdio-paranoia-dev
	     libcddb-dev

	     libxcomposite-dev
	     libsamplerate-dev
	     libcue-dev
	     libmms-dev
	     libsndfile-dev

	     libnotify-dev

	     libogg-dev
             libvorbis-dev

	     $_want_ffmpeg

             alsa-lib-dev
	     faad2-dev
             neon-dev
             curl-dev
             wavpack-dev
	     lame-dev
	     flac-dev
	     sdl-dev

	     automake
	     autoconf"
install=
subpackages="$pkgname-lang"
source="http://distfiles.audacious-media-player.org/$pkgname-$pkgver.tar.bz2"

_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

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

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

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

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

md5sums="1ba5ef956eb7b4018ff6a9f2ea404354  audacious-plugins-3.5.2.tar.bz2"
sha256sums="179600d7f8ae31a7d9c5785ce6fa7e09184dbd1271e0adb8c57760432c6a4cd9  audacious-plugins-3.5.2.tar.bz2"
sha512sums="eaf46f403a77b5de63f26e096b968a6d94bbe3917df4400e5791143d846c1f3cbf83f2937210055a9b493dfa56ddb36b12d6d57b1453708b23dd41c0e2a94a72  audacious-plugins-3.5.2.tar.bz2"