Mail archive
alpine-aports

[alpine-aports] [PATCH 3/3] main/spice: modernize abuild

From: Daniel Sabogal <dsabogalcc_at_gmail.com>
Date: Thu, 29 Jun 2017 21:26:49 -0400

---
 main/spice/APKBUILD | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/main/spice/APKBUILD b/main/spice/APKBUILD
index 6bc85302b6..830f972cbe 100644
--- a/main/spice/APKBUILD
+++ b/main/spice/APKBUILD
_at_@ -12,14 +12,13 @@ depends_dev="spice-protocol pixman-dev celt051-dev libressl-dev libxinerama-dev"
 makedepends="$depends_dev alsa-lib-dev libjpeg-turbo-dev libxrandr-dev
 	cyrus-sasl-dev libxfixes-dev python2-dev bash cegui06-dev py-parsing
 	py-six glib-dev opus-dev"
-install=""
 subpackages="$pkgname-dev $pkgname-server"
 source="http://www.spice-space.org/download/releases/$pkgname-$pkgver.tar.bz2
 	CVE-2016-9577.patch
 	CVE-2016-9578-1.patch
 	CVE-2016-9578-2.patch
 	"
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
 
 # secfixes:
 #   0.12.8-r3:
_at_@ -39,15 +38,19 @@ build() {
 		--enable-gui \
 		--enable-client \
 		--disable-smartcard \
-		--enable-opus \
-		|| return 1
-	make -C spice-common WARN_CFLAGS='' || return 1
-	make WARN_CFLAGS='' || return 1
+		--enable-opus
+	make -C spice-common WARN_CFLAGS=''
+	make WARN_CFLAGS=''
+}
+
+check() {
+	cd "$builddir"
+	make check
 }
 
 package() {
 	cd "$builddir"
-	make DESTDIR="$pkgdir" install || return 1
+	make DESTDIR="$pkgdir" install
 }
 
 server() {
-- 
2.13.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Jun 29 2017 - 21:26:49 UTC