aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vice
diff options
context:
space:
mode:
authorJean-Louis Fuchs <ganwell@fangorn.ch>2017-03-23 13:39:01 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-03-23 15:46:08 +0000
commit6751306975dd23c3318042f01bf92b63a39defef (patch)
tree009a7d724723eea162d533efa23d24c2ef609c89 /testing/vice
parent911daf20178753c35298609b7bbc10062bf093cd (diff)
downloadaports-6751306975dd23c3318042f01bf92b63a39defef.tar.bz2
aports-6751306975dd23c3318042f01bf92b63a39defef.tar.xz
testing/vice: Add check(), remove returns
Diffstat (limited to 'testing/vice')
-rw-r--r--testing/vice/APKBUILD26
1 files changed, 14 insertions, 12 deletions
diff --git a/testing/vice/APKBUILD b/testing/vice/APKBUILD
index cba38c709c..5d64921c3b 100644
--- a/testing/vice/APKBUILD
+++ b/testing/vice/APKBUILD
@@ -2,26 +2,24 @@
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=vice
pkgver=3.0
-pkgrel=0
+pkgrel=1
pkgdesc="emulates the C64/DTV, C128, VIC20, almost all PETs, PLUS4 and CBM-II"
url="http://vice-emu.sourceforge.net/"
arch="all"
license="GPL"
-depends=""
makedepends="sdl2-dev giflib-dev ffmpeg-dev jpeg-dev alsa-lib-dev
linux-headers texinfo automake autoconf bison flex"
-install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/vice-emu/vice-$pkgver.tar.gz
disable-fc-cache.patch
fix__u_char.patch"
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- sed -i 's/\r//' "$builddir"/src/opencbm.h || return 1
- default_prepare || return 1
- sed -i 's/lib64/lib/g' configure.ac || return 1
- autoreconf -fi || return 1
+ sed -i 's/\r//' "$builddir/src/opencbm.h"
+ default_prepare
+ sed -i 's/lib64/lib/g' configure.ac
+ autoreconf -fi
}
build() {
@@ -30,15 +28,19 @@ build() {
--libdir=/usr/lib \
--enable-sdlui2 \
--disable-no-pic \
- --enable-external-ffmpeg \
- || return 1
- make || return 1
+ --enable-external-ffmpeg
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" realdocdir="/usr/share/doc/vice" install || return 1
+ make DESTDIR="$pkgdir" realdocdir="/usr/share/doc/vice" install
}
+
+check() {
+ make -C "$builddir" check
+}
+
md5sums="c732d76a70ac1232a43456dae540b43a vice-3.0.tar.gz
b1dee4fef59f835534683fabbe1fbbce disable-fc-cache.patch
f562fcd4ce5b6a72008cc46d9ed19881 fix__u_char.patch"