APKBUILD 1.33 KB
Newer Older
1 2 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mp3splt-gtk
4
pkgver=0.9.2
5
pkgrel=2
6 7 8
pkgdesc="Gtk frontend for mp3splt"
url="http://mp3splt.sourceforge.net/"
arch="all"
9
license="GPL-2.0-or-later"
10
depends=""
11
makedepends="gtk+3.0-dev gst-plugins-base-dev libmp3splt-dev
12
			autoconf automake libtool"
13 14
install=""
subpackages="$pkgname-doc $pkgname-lang"
15
source="https://prdownloads.sourceforge.net/mp3splt/$pkgname-$pkgver.tar.gz"
16

17
_builddir="$srcdir"/$pkgname-$pkgver
18 19 20
prepare() {
	local i
	cd "$_builddir"
21
	update_config_sub || return 1
22 23 24 25 26 27 28 29 30
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
35
		--disable-gnome \
36
		--disable-audacious \
37
		|| return 1
38
	sed -i -e 's/-DGTK_DISABLE_DEPRECATED//' Makefile src/Makefile
39 40 41 42 43 44 45 46
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

47 48 49
md5sums="17cd1445a13e127a03c13b740e1945fc  mp3splt-gtk-0.9.2.tar.gz"
sha256sums="2084cc942b5d1aa6ff74848a41d05cb37876cbc74dfdc341ceb424c763887650  mp3splt-gtk-0.9.2.tar.gz"
sha512sums="e837cbc0759cd6535fc466099a170d066ab72b4854f8546f524261fe660887f5d2add60d9fa1e19d68d811004c682a324b5bcba86aa8cb89ae1ad2bc2f9b1d9d  mp3splt-gtk-0.9.2.tar.gz"