1 # Contributor: kagan <juanynie AT gmail DOT com>
5 pkgdesc="Xe is a multi system emulator that emulates many console and handheld video game systems of the past."
6 url="http://www.xe-emulator.com/"
8 depends=('libxv' 'libxxf86vm' 'libxinerama' 'zlib' 'gtk2')
9 makedpends=('pkgconfig')
10 arch=('i686' 'x86_64')
11 [ "$CARCH" = "i686" ] && ARCH=x86-32
12 [ "$CARCH" = "x86_64" ] && ARCH=x86-64
13 install=xe-bin.install
14 source=(http://www.xe-emulator.com/files/xe-$ARCH-bin.$pkgver.tar.bz2 xe.desktop xe.png)
15 md5sums=('3ea92f686722cde768c0e008bb0b5ec3' 'e17fa0731e5f93e94c3d08555212cca1' 'c3babfea9611560eefce9b744d16a2ab')
16 [ "$CARCH" = "x86_64" ] && md5sums=('adcf3872f41cd0f0ea1ac28ea90abc00' 'e17fa0731e5f93e94c3d08555212cca1' 'c3babfea9611560eefce9b744d16a2ab')
19 cd $startdir/src/xe-x*/
20 sed -i '/strip/d' Makefile
21 sed -i '/^CC/d' Makefile
22 sed -i '/CC/s/$/ $(LDFLAGS)/' Makefile
23 sed -i 's/@//' Makefile
25 mkdir -p $startdir/pkg/usr/{bin,lib/xe}
26 cp -R $startdir/src/xe-x*/modules $startdir/pkg/usr/lib/xe/
27 cp -R $startdir/src/xe-x*/rc $startdir/pkg/usr/lib/xe/
28 cp -R $startdir/src/xe-x*/xe $startdir/pkg/usr/bin/
30 # Install desktop shortcut
31 install -D -m 0644 $startdir/xe.desktop $startdir/pkg/usr/share/applications/xe.desktop
34 install -D -m 0644 $startdir/xe.png $startdir/pkg/usr/share/pixmaps/xe.png