1 # Maintainer: trya <tryagainprod@gmail.com>
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"
10 if [[ $CARCH == "x86_64" ]]; then
11 depends=('lib32-gtk2' 'lib32-sdl' 'lib32-libgl')
12 makedepends=('nasm' 'gcc-multilib')
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')
20 source=("http://segaretro.org/images/6/6d/Gens-gs-r7.tar.gz"
22 md5sums=('bcb17b49774aa318a224c741028aabc3'
23 '94a8ea744dee8caea73db1223ac67dcd')
26 if [ $CARCH == "x86_64" ]; then
29 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
32 cd "$srcdir/$pkgname-$pkgver"
34 patch -Np1 < ../gens-gtk.patch
35 if [ $CARCH == "x86_64" ]; then
36 i386 ./configure --prefix=/usr
38 ./configure --prefix=/usr
44 cd "$srcdir/$pkgname-$pkgver"
45 make DESTDIR="$pkgdir" install
46 rm -f "$pkgdir/usr/lib/mdp/*.a"