pkgname=gens-gs
gsver=gs-r7
pkgver=2.15.5_${gsver/-/_}
pkgrel=1
pkgdesc="An emulator for Sega Genesis, Sega CD and 32X. This version features a cleaned up souce code and combine features from various forks of Gens."
url="http://info.sonicretro.org/Gens/GS"
license=('GPL')
arch=('i686' 'x86_64')
depends=('gtk2>=2.4.0' 'sdl>=1.2.0')
makedepends=('nasm>=2.05.01' 'gcc>=4.0.0')
conflicts=('gens' 'bin32-gens' 'bin32-gens-gs' 'gens-cvs' 'gens-opengl' 'gens-mythgame-opengl')
source=(http://segaretro.org/images/6/6d/Gens-${gsver}.tar.gz)
options=('!libtool')
md5sums=('bcb17b49774aa318a224c741028aabc3')
if [ "$CARCH" = "x86_64" ]; then
pkgname=bin32-$pkgname
depends=('lib32-gtk2>=2.4.0' 'lib32-sdl>=1.2.0')
makedepends=('nasm>=2.05.01' 'gcc-multilib>=4.0.0')
export CC="gcc -m32" CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
fi
build() {
cd "${srcdir}"/gens-${gsver}
./configure --prefix=/usr --host="i686-pc-linux-gnu"
make
}
package() {
cd "${srcdir}"/gens-${gsver}
make DESTDIR="${pkgdir}" install
}