aboutsummaryrefslogtreecommitdiffstats
path: root/community/moc/APKBUILD
blob: 54ac61de50d08b1df412c88a9b68f5f11291d246 (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
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=moc
pkgver=2.5.2
pkgrel=0
pkgdesc="MOC is a console audio player"
url="http://moc.daper.net/"
arch="all"
license="GPL"
makedepends="curl-dev libtool file ffmpeg-dev speex-dev alsa-lib-dev
		libmodplug-dev faad2-dev jack-dev libmad-dev ncurses-dev"
subpackages="$pkgname-doc"
source="http://ftp.daper.net/pub/soft/moc/stable/moc-${pkgver}.tar.bz2"

builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	default_prepare
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-rcc \
		--with-oss \
		--with-alsa \
		--with-jack \
		--with-aac \
		--with-mp3 \
		--with-musepack \
		--with-vorbis \
		--with-flac \
		--with-wavpack \
		--with-sndfile \
		--with-modplug \
		--with-ffmpeg \
		--with-speex \
		--with-samplerate \
		--with-curl  \
		--disable-cache \
		--disable-debug
	make
}

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

sha512sums="992d06809fb52e58dcee63704bde05795b99edbac46edd8381f314c564490013b18e1853926f419c2c3c7f1bb68ff35e97048de03ace3232b800cf4b3b7dbe0f  moc-2.5.2.tar.bz2"