1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
2 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
3 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
8 pkgdesc="An emulator of the Enterprise 128 computer"
10 url="http://ep128emu.enterpriseforever.com/"
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 \
20 md5sums=('b57dba643300b556a80396be8d74f0b6'
21 'ee95ae5920a76adf89eec556b9a5097e'
22 'c44ed6444913517c1579c220e05711e1'
23 'e15690d80697bf2e51a7d181663e5e59'
24 'b8e174fcfb606c59318f810fbeb73b6d')
27 cd "${srcdir}"/${pkgname}-${pkgver}
30 sed -i "s/disableSDL = 0/disableSDL = 1/" SConstruct
31 sed -i "s/disableLua = 0/disableLua = 1/" SConstruct
36 cd "${srcdir}"/${pkgname}-${pkgver}
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
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