aboutsummaryrefslogtreecommitdiffstats
path: root/main/mp3splt-gtk/APKBUILD
blob: 87ebbad849ea71c4fa9f6c33b0fd47d9aa363f6f (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
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"

_builddir="$srcdir"/mp3splt-gtk-$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="5951788352e7bdc5b26a6481992dc52a  mp3splt-gtk-0.9.tar.gz"
sha256sums="6262cf61f74bfb1cac5d5bdf6c3ad41fece221f7fb66032ae633835044aecff5  mp3splt-gtk-0.9.tar.gz"
sha512sums="0966e08fb8aef75feb6d3ffea7377ce39376739b1c6d97cb5729e627829d99e0b56011d625cfea26c76a39f7a2ff2a941fef92b4ab85a9c83f99ef1c55c6a87f  mp3splt-gtk-0.9.tar.gz"