aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmp3splt/APKBUILD
blob: f7eb24ba21f43e32713c3a563357ef58eaf8a3b2 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmp3splt
pkgver=0.9.2
pkgrel=0
pkgdesc="Library to split mp3 and ogg files without decoding"
url="http://mp3splt.sourceforge.net/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev="pcre-dev libogg-dev libmad-dev libvorbis-dev libid3tag-dev libtool"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://prdownloads.sourceforge.net/mp3splt/libmp3splt-$pkgver.tar.gz"

_builddir="$srcdir"/libmp3splt-$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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-ogg \
		--enable-mp3 \
		|| return 1
	make || return 1
}

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

md5sums="28009187c1cbd0bce50138029532647d  libmp3splt-0.9.2.tar.gz"
sha256sums="30eed64fce58cb379b7cc6a0d8e545579cb99d0f0f31eb00b9acc8aaa1b035dc  libmp3splt-0.9.2.tar.gz"
sha512sums="e5c98e8b173bc86302ccee4ca5eb0c8a8d93f225357eb7b14dea8d0700ed62ed6316506c182f6b295130f7924ff0b38e865d5e49fa9cd7882c648360d68872ed  libmp3splt-0.9.2.tar.gz"