updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / gens-gs / PKGBUILD
blob4969197158c17f3fc270cc2701cea0661eeb34b7
1 # Maintainer: trya <tryagainprod@gmail.com>
3 pkgname=gens-gs
4 pkgver=r7
5 pkgrel=4
6 pkgdesc="An emulator of Sega Genesis, Sega CD and 32X, combining features from various forks of Gens"
7 url="http://segaretro.org/Gens/GS"
8 arch=('i686' 'x86_64')
9 license=('GPL')
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' 'gcc')
17 replaces=('bin32-gens-gs')
18 conflicts=('gens' 'gens-gs-git' 'bin32-gens-gs' 'bin32-gens')
19 options=('!libtool')
20 source=("http://segaretro.org/images/6/6d/Gens-gs-r7.tar.gz"
21         gens-gtk.patch)
22 md5sums=('bcb17b49774aa318a224c741028aabc3'
23          '94a8ea744dee8caea73db1223ac67dcd')
25 build() {
26   if [ $CARCH == "x86_64" ]; then
27     export CC="gcc -m32"
28     export CXX="g++ -m32"
29     export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
30   fi
32   cd "$srcdir/$pkgname-$pkgver"
33   
34   patch -Np1 < ../gens-gtk.patch
35   if [ $CARCH == "x86_64" ]; then
36     i386 ./configure --prefix=/usr
37   else
38     ./configure --prefix=/usr
39   fi
40   make
43 package() {
44   cd "$srcdir/$pkgname-$pkgver"
45   make DESTDIR="$pkgdir" install
46   rm -f "$pkgdir/usr/lib/mdp/*.a"