updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gens / PKGBUILD
blob7d7511adfcc2001701b52977021036d2a371f65c
1 # Maintainer: TryA <tryagainprod@gmail.com>
3 pkgname=gens
4 pkgver=2.15.5
5 pkgrel=5
6 pkgdesc='An emulator of Sega Genesis, Sega CD and 32X, built from the official Gens for Linux tree'
7 url='http://gens.sourceforge.net'
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 if [[ $CARCH == "x86_64" ]]; then
11   depends=('lib32-gtk2' 'lib32-sdl' 'lib32-libgl')
12   makedepends=('nasm' 'gcc-multilib')
13 else
14   depends=('gtk2' 'sdl' 'libgl')
15   makedepends=('nasm')
17 conflicts=('gens-gs' 'bin32-gens' 'bin32-gens-gs')
18 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
19         gens.desktop)
20 md5sums=('1496a49be056d65bf76b52de62e932d7'
21          '99796e505b58f08a0930e61e6a5f23f9')
23 build() {
24   if [ $CARCH == "x86_64" ]; then
25     export CC="gcc -m32"
26     export CXX="g++ -m32"
27   fi
28   
29   unset CFLAGS
30   unset LDFLAGS  
31   cd ${srcdir}/${pkgname}-${pkgver}
32   ./configure --prefix=/usr
33   make
36 package() {
37   cd ${srcdir}/${pkgname}-${pkgver}
38   make DESTDIR=${pkgdir} install
39   install -Dm644 ${srcdir}/gens.desktop \
40     ${pkgdir}/usr/share/applications/gens.desktop