summaryrefslogtreecommitdiffstats
path: root/main/mp3splt/APKBUILD
blob: c038849e80ee71af1b39d515b45b9e4b94772d6a (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mp3splt
pkgver=2.6
pkgrel=0
pkgdesc="A command-line, AlbumWrap and mp3wrap file exctractor"
url="http://mp3splt.sourceforge.net/"
arch="all"
license="GPLv2"
depends=""
makedepends="libmp3splt-dev"
install=""
subpackages="$pkgname-doc"
source="http://prdownloads.sourceforge.net/mp3splt/mp3splt-$pkgver.tar.gz"

_builddir="$srcdir"/mp3splt-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	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 \
		--with-mp3splt-includes=/usr/include/libmp3splt \
		--enable-oggsplt_symlink \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="3f149cd0c2842b95551130bd56840f55  mp3splt-2.6.tar.gz"
sha256sums="0b01ab4c8ee006dfc074a94c9c57b24b6ec962caf21516aeabec6f59b9247c64  mp3splt-2.6.tar.gz"
sha512sums="944030f5f9678d1583b6def6678a8544d69f4f4359f29c5a98ab0e2de4975c4761f0c5c6c1b5e29ef5afcf360a199e25ba7a5f2a3f9c09643190d388925994e3  mp3splt-2.6.tar.gz"