summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d390fbecc0de529d134c275ced634dc88b26293 (plain)
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
# Maintainer: Benjamin Hodgetts <ben@xnode.org>

pkgname=vice-svn
pkgver=r34716
pkgrel=1
pkgdesc="The Versatile Commodore Emulator (Commodore 64/C64)."
arch=('i686' 'x86_64')
url="http://vice-emu.sourceforge.net"
license=('GPL')
depends=('giflib' 'lame' 'libjpeg' 'libpng' 'libxrandr' 'libnet' 'libpcap' 'xdialog')
makedepends=('xorg-font-utils' 'pkg-config')
optdepends=('pulseaudio' 'pulseaudio-alsa' 'alsa-lib')
provides=('vice')
replaces=('vice')
source=("${pkgname}::svn://svn.code.sf.net/p/vice-emu/code/trunk" 'vice-fixes.patch')
md5sums=('SKIP' '6ae696148e372bcdc7aa21e4fc39e5d2')

pkgver() {
	echo r$(svnversion "${SRCDEST}"/${pkgname}/)
}

prepare() {
	cd "${pkgname}/vice"
	patch -Np1 -i ../../vice-fixes.patch
}

build() {
	cd "${pkgname}/vice"
	./autogen.sh
	./configure --prefix=/usr --enable-fullscreen --enable-external-ffmpeg --with-uithreads --without-oss --with-pulse --without-alsa --enable-gnomeui
	make
}

package() {
	cd "${pkgname}/vice"
	make install DESTDIR="${pkgdir}/"
}