gens-gs

By grimi, 2 Days ago, written in bash.
  1.  
  2. pkgname=gens-gs
  3. gsver=gs-r7
  4. pkgver=2.15.5_${gsver/-/_}
  5. pkgrel=1
  6. 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."
  7. url="http://info.sonicretro.org/Gens/GS"
  8. license=('GPL')
  9. arch=('i686' 'x86_64')
  10. depends=('gtk2>=2.4.0' 'sdl>=1.2.0')
  11. makedepends=('nasm>=2.05.01' 'gcc>=4.0.0')
  12. conflicts=('gens' 'bin32-gens' 'bin32-gens-gs' 'gens-cvs' 'gens-opengl' 'gens-mythgame-opengl')
  13. source=(http://segaretro.org/images/6/6d/Gens-${gsver}.tar.gz)
  14. options=('!libtool')
  15. md5sums=('bcb17b49774aa318a224c741028aabc3')
  16.  
  17. if [ "$CARCH" = "x86_64" ]; then
  18.    pkgname=bin32-$pkgname
  19.    depends=('lib32-gtk2>=2.4.0' 'lib32-sdl>=1.2.0')
  20.    makedepends=('nasm>=2.05.01' 'gcc-multilib>=4.0.0')
  21.    export CC="gcc -m32" CXX="g++ -m32"
  22.    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  23. fi
  24.  
  25. build() {
  26.   cd "${srcdir}"/gens-${gsver}
  27.   ./configure --prefix=/usr --host="i686-pc-linux-gnu"
  28.   make
  29. }
  30.  
  31. package() {
  32.   cd "${srcdir}"/gens-${gsver}
  33.   make DESTDIR="${pkgdir}" install
  34. }
  35.  
  36.