summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6282cfc4adc63f8f76de609f5d4264f2c45fce5c (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
# Maintainer: Sebastian Wolf <fatmike303 at gmail dot com>
# Contributor: grimi <grimi at poczta dot fm>
pkgname=vice-sdl-devel
_pkgname=vice
pkgver=2.4.33
pkgrel=2
pkgdesc='The Versatile Commodore 8-bit Emulator (development release using SDL)'
arch=('i686' 'x86_64')
license=('GPL')
url='http://vice-emu.sourceforge.net'
depends=('sdl' 'libpulse' 'portaudio' 'mpg123' 'mesa' 'pciutils' 'giflib' 'libpng' 'libpcap' 'libjpeg-turbo')
makedepends=('xorg-font-utils')
provides=('vice')
conflicts=('vice' 'vice-gtk' 'vice-sdl' 'vice-gtkglext' 'vice-gnomeui-devel')
replaces=('vice')
options=('!makeflags')
source=(
    http://downloads.sourceforge.net/project/vice-emu/development-releases/${_pkgname}-${pkgver}.tar.gz
    no-fc-cache-no-lib64.patch
    ${_pkgname}.desktop
    ${_pkgname}.png
)
sha256sums=(
    111bb26310bd660802767084f6840a75156158134689a23a3c8a0e0d817ee36d
    b0254ac814918d76c60d0130f0e8e874c71aaf77e979a36c6a67dbbf7322cbb5
    e0a600d72c2352826282a0f7fcf380b24272fba10a9ed31c8fd45a21d597f3ad
    0d51f822b70d24bbc9d813d552138660cf705aaaecc12115bc1416364e1473b3
)

prepare() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    patch -Np1 -i ../no-fc-cache-no-lib64.patch
}

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    ./configure --prefix=/usr --enable-fullscreen --enable-sdlui --with-sdlsound --enable-ethernet
    make
}

package() {
    install -Dm644 ${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop
    install -Dm644 ${_pkgname}.png $pkgdir/usr/share/pixmaps/${_pkgname}.png
    cd ${srcdir}/${_pkgname}-${pkgver}
    make DESTDIR=${pkgdir} install
}