updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / loemu / PKGBUILD
blob9a028ce4a1690dbddec7720122a731ae4cea5ee5
1 # Contributor: robb_force <robb_force@holybuffalo.net>
3 pkgname=loemu
4 pkgver=0.3.1
5 pkgrel=1
6 pkgdesc="A simple frontend for various game emulators, including XMAME, SDLMAME, Snes9x an ZSNES."
7 url="http://loemu.pegueroles.com/"
8 license="GPL"
9 arch=('i686' 'x86_64')
10 depends=('pygtk>=2.6' 'libglade' 'libxslt')
11 makedepends=('intltool')
12 source=(http://loemu.pegueroles.com/dists/${pkgname}-${pkgver}.tar.gz \
13   loemu.desktop )
14 md5sums=('c2ac4dc230511d48761c0781f50aa1a1'
15          '91eec5854583f971388f7034a84c64bd')
16    
17 build() {
18   # Make some fixes to the paths
19   cd ${startdir}/src/${pkgname}-${pkgver}/${pkgname}
20   sed 's|share/games|share|g' -i Preferences.py
21   sed 's|share/games|share|g' -i Loemu.py
22   sed 's|share/games|share|g' -i Config.py
23   cd ${startdir}/src/${pkgname}-${pkgver}/config
24   sed 's|mamepm|sdlmame|' -i sdlmame.conf
25   cd ${startdir}/src/${pkgname}-${pkgver}
26   sed 's|share/games|share|g' -i setup.py
28   # Install the application
29   python setup.py install --root=${startdir}/pkg/ --prefix=/usr
31   # Install the desktop entry
32   install -Dm644 ${startdir}/src/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop
33   install -Dm644 images/penguin-revolt-128.png ${startdir}/pkg/usr/share/pixmaps/${pkgname}.png