summaryrefslogtreecommitdiff
path: root/extra/vice/PKGBUILD
blob: 373864d385f36106fc3773c627bd7faa05755fd3 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 170377 2012-11-06 19:33:54Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=vice
pkgver=2.4
pkgrel=2
pkgdesc="The Versatile Commodore 8-bit Emulator"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.viceteam.org/"
depends=('alsa-lib' 'giflib' 'libxxf86vm' 'vte' 'libnet' 'libpcap')
makedepends=('xorg-font-utils')
options=('!makeflags')
install=vice.install
source=("http://downloads.sourceforge.net/project/vice-emu/releases/${pkgname}-${pkgver}.tar.gz"
        'vice-2.4-x11video.patch'
        'vice-2.4-no-fc-cache-no-lib64.patch'
        'vice-2.4-notexi-notxt.patch'
        'vice-2.4-zlib-1.2.7.patch')
md5sums=('b017647a0c159bbe43cdb81762d1c577'
         '99931efcb779734c9df069e94f0b38a5'
         'b0d1392664decd3169740baf90661710'
         '877f93db1550ea81386aae7c3b578442'
         '9d9f62f05a967a5926df496e86404148')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np1 -i "${srcdir}/vice-2.4-x11video.patch"
  patch -Np1 -i "${srcdir}/vice-2.4-no-fc-cache-no-lib64.patch"
  patch -Np1 -i "${srcdir}/vice-2.4-notexi-notxt.patch"
  patch -Np1 -i "${srcdir}/vice-2.4-zlib-1.2.7.patch"

  autoreconf
  ./configure --prefix=/usr \
              --enable-ethernet \
              --with-alsa \
              --enable-fullscreen \
              --enable-gnomeui \
              --disable-ffmpeg
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" realdocdir="/usr/share/doc/vice" install
  ln -s /usr/share/doc/vice "${pkgdir}/usr/lib/vice/doc"
}