aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vice/APKBUILD
blob: bcb7dd1069f278d35ad5933198b3a06519389a81 (plain) (blame)
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
# Contributor: Jean-Louis Fuchs <ganwell@fangorn.ch>
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=vice
pkgver=3.3
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-2.0"
makedepends="gtk+3.0-dev giflib-dev ffmpeg-dev jpeg-dev libpng-dev alsa-lib-dev
	linux-headers texinfo automake autoconf bison flex xa bdftopcf mkfontdir
	bash"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/vice-emu/vice-$pkgver.tar.gz
	disable-fc-cache.patch
	fix__u_char.patch"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	sed -i 's/\r//' "$builddir/src/opencbm.h"
	default_prepare
	sed -i 's/lib64/lib/g' configure.ac
	autoreconf -fi
}

build() {
	cd "$builddir"
	./configure --prefix=/usr \
		--libdir=/usr/lib \
		--enable-native-gtk3ui \
		--disable-no-pic \
		--enable-external-ffmpeg
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" realdocdir="/usr/share/doc/vice" install
}

check() {
	make -C "$builddir" check
}

sha512sums="702942e33b6e3d7e29ca6ed483242319ed5f6be26831def88a282cf7dce25d4c34dbf3651fcf8b583492fcb280ce5f4304c6eda3712088a73db24772c7a2bb3a  vice-3.3.tar.gz
ed6fee34eefcb04c42b4575591dfeffca8548eae354dee66dabdbc4abac0311cbbedcdc07cdfcb01da4840d57ab331a31583e17160820462a2c064835a75d75d  disable-fc-cache.patch
3132be50c402068865b530ed9df71a073012623ce48e3fa162f33af7bdcdd6d890590955868bb5591e018c17359e860ccff9eb0cde9bfd99582ac921400e8f2f  fix__u_char.patch"