updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / ep128emu / PKGBUILD
blob79fd8bd57fdd5d5d47a16342eda54c5dcbd3ab04
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
2 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
3 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
5 pkgname=ep128emu
6 pkgver=2.0.9.1
7 pkgrel=2
8 pkgdesc="An emulator of the Enterprise 128 computer"
9 arch=('i686' 'x86_64')
10 url="http://ep128emu.enterpriseforever.com/"
11 license=('GPL')
12 depends=('fltk' 'portaudio' 'libsndfile' 'dotconf' 'mesa')
13 makedepends=('scons' 'python')
14 install=ep128emu.install
15 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2 \
16   http://ep128emu.enterpriseforever.com/roms/${pkgname}_roms.bin \
17   ep128emu-config.sh \
18   ep128emu.desktop \
19   ep128emu.png)
20 md5sums=('b57dba643300b556a80396be8d74f0b6'
21          'ee95ae5920a76adf89eec556b9a5097e'
22          'c44ed6444913517c1579c220e05711e1'
23          'e15690d80697bf2e51a7d181663e5e59'
24          'b8e174fcfb606c59318f810fbeb73b6d')
26 build() {
27   cd "${srcdir}"/${pkgname}-${pkgver}
29   # scons
30   sed -i "s/disableSDL = 0/disableSDL = 1/" SConstruct
31   sed -i "s/disableLua = 0/disableLua = 1/" SConstruct
32   scons
35 package() {
36   cd "${srcdir}"/${pkgname}-${pkgver}
38   # install emulator
39   install -m755 -d "${pkgdir}"/usr/bin
40   install -m755 -t "${pkgdir}"/usr/bin/ ep128emu makecfg tapeedit
41   install -m755 -d "${pkgdir}"/usr/lib
42   install -m644 -t "${pkgdir}"/usr/lib/ libep128.a libep128emu.a
43   # install roms
44   install -Dm644 ${srcdir}/${pkgname}_roms.bin "${pkgdir}"/usr/share/${pkgname}/roms/${pkgname}_roms.bin
45   install -Dm755 ${srcdir}/${pkgname}-config.sh "${pkgdir}"/usr/bin/${pkgname}-config
46   # install desktop file
47   install -Dm644 ${srcdir}/ep128emu.desktop "${pkgdir}"/usr/share/applications/ep128emu.desktop
48   install -Dm644 ${srcdir}/ep128emu.png "${pkgdir}"/usr/share/pixmaps/ep128emu.png