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

_builddir="$srcdir"/mp3splt-gtk-$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
	aclocal && autoreconf
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-gnome \
		|| return 1
	make || return 1
}

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

md5sums="9c8b6de5cedaebf96d53df1d226712c1  mp3splt-gtk-0.7.3.tar.gz
9531efb02e98624356bda87c92be7cce  dbus-glib-underlinking.patch"