aboutsummaryrefslogtreecommitdiffstats
path: root/main/mp3splt/APKBUILD
blob: cd38a4f64eb7261eb776f764700471054c5b5d6c (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mp3splt
pkgver=2.5.1
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"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --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="c0c66be0058cbc26ed52cfd2b50659fd  mp3splt-2.5.1.tar.gz"
sha256sums="90f332987db5883c69a2ef533e2b1555058290036040a76d62345f53d4b4cd80  mp3splt-2.5.1.tar.gz"
sha512sums="1b36b856e36ff4e3a5657f53982e57b7864e4292826da2cdb4a5b8e6d310ec820ce5a178f7239a9924cb93faf3d95a6ba8dcd41c6f25246e6079029ab90322f9  mp3splt-2.5.1.tar.gz"