aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmp3splt/APKBUILD
blob: 206ae13959414eb9ee3f039d4c0c37c5d81cec1a (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmp3splt
pkgver=0.9.1
pkgrel=0
pkgdesc="Library to split mp3 and ogg files without decoding"
url="http://mp3splt.sourceforge.net/"
arch="all"
license="GPLv2"
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
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/libmp3splt*/*.la
}

md5sums="742f9fb4806df909c0ba25919bf9bb4f  libmp3splt-0.9.1.tar.gz"
sha256sums="aabbdf3600796bba3591f62a1b9137237e7e90a931b719feccd1b2644c4b599d  libmp3splt-0.9.1.tar.gz"
sha512sums="a95f5a5e622baca6ea87e7c8d2c2da3bda8b9c91761506392efea848e433045b8a304b774d12fef5a93c7c75d64c65b5df45a37d936bbbc91c1ddb2f8ac1d670  libmp3splt-0.9.1.tar.gz"