Mail archive
alpine-aports

[alpine-aports] [PATCH 3/4] main/sdl2_mixer: improve abuild and fix license

From: Daniel Sabogal <dsabogalcc_at_gmail.com>
Date: Tue, 8 Nov 2016 12:54:35 -0500

---
 main/sdl2_mixer/APKBUILD | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/main/sdl2_mixer/APKBUILD b/main/sdl2_mixer/APKBUILD
index fcd9ca0..f2ed0d8 100644
--- a/main/sdl2_mixer/APKBUILD
+++ b/main/sdl2_mixer/APKBUILD
_at_@ -2,22 +2,23 @@
 # Maintainer: Francesco Colista <fcolista_at_alpinelinux.org>
 pkgname=sdl2_mixer
 pkgver=2.0.1
-pkgrel=1
+pkgrel=2
+_pkgname=SDL2_mixer
 pkgdesc="A simple multi-channel audio mixer"
 url="http://www.libsdl.org/projects/SDL_mixer/"
 arch="all"
-license="GPL"
-depends=
+license="zlib"
+depends=""
 makedepends="sdl2-dev libvorbis-dev libmikmod-dev 
-			libmodplug-dev flac-dev linux-headers"
+	libmodplug-dev flac-dev linux-headers"
 subpackages="$pkgname-dev"
-source="http://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-${pkgver}.tar.gz"
-
-_builddir="$srcdir"/SDL2_mixer-$pkgver
+source="http://www.libsdl.org/projects/SDL_mixer/release/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
 
 prepare() {
-	cd "$_builddir"
+	cd "$builddir"
 	update_config_sub || return 1
+
 	sed -e "/CONFIG_FILE_ETC/s/\/etc\/timidity.cfg/\/etc\/timidity++\/timidity.cfg/" \
 		-e "/DEFAULT_PATH/s/\/etc\/timidity/\/etc\/timidity++/" \
 		-e "/DEFAULT_PATH2/s/\/usr\/local\/lib\/timidity/\/usr\/lib\/timidity/" \
_at_@ -25,7 +26,7 @@ prepare() {
 }
 
 build() {
-	cd "$_builddir"
+	cd "$builddir"
 	./configure \
 		--build=$CBUILD \
 		--host=$CHOST \
_at_@ -39,7 +40,7 @@ build() {
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-- 
2.10.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Nov 08 2016 - 12:54:35 GMT