aboutsummaryrefslogtreecommitdiffstats
path: root/main/mp3splt-gtk/APKBUILD
blob: 538a716196097c50dcd41c99e399276593115d6c (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mp3splt-gtk
pkgver=0.9.1
pkgrel=0
pkgdesc="Gtk frontend for mp3splt"
url="http://mp3splt.sourceforge.net/"
arch="all"
license="GPL2+"
depends=""
makedepends="gtk+3.0-dev gst-plugins-base1-dev gnome-doc-utils libmp3splt-dev
			audacious-dev audacious-plugins
			autoconf automake libtool"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://prdownloads.sourceforge.net/mp3splt/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$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 \
		--disable-gnome \
		|| return 1
	sed -i -e 's/-DGTK_DISABLE_DEPRECATED//' Makefile src/Makefile
	make || return 1
}

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

md5sums="f310479ee8388803164d9d4bbf8acfec  mp3splt-gtk-0.9.1.tar.gz"
sha256sums="3c9db4b6ec26cd55c91b7fe30b8b6236555b95012cd8abdc4c949e6ae45c8194  mp3splt-gtk-0.9.1.tar.gz"
sha512sums="7596e8341b8cd5f0592f310665bd178d04e8c46b43e51a2df4fb0d6acac64e5be66aeb58f072acbbf9597578c5126f28eb3734e8d24e020669db7b2b94ef6a65  mp3splt-gtk-0.9.1.tar.gz"