[arch-commits] Commit in gens-gs/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Thu Apr 9 09:14:53 UTC 2015


    Date: Thursday, April 9, 2015 @ 11:14:52
  Author: alucryd
Revision: 131016

FS#44506: gens-gs 2.16.7-5

Modified:
  gens-gs/trunk/PKGBUILD

----------+
 PKGBUILD |   59 +++++++++++++++++++++++++++++++----------------------------
 1 file changed, 31 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-04-09 07:24:20 UTC (rev 131015)
+++ PKGBUILD	2015-04-09 09:14:52 UTC (rev 131016)
@@ -1,25 +1,25 @@
 # $Id$
-# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 # Contributor: trya <tryagainprod at gmail.com>
 # Contributor: Yvan <madridista40 at orange.fr>
 
 pkgname=gens-gs
 pkgver=2.16.7
-pkgrel=4
-pkgdesc="An emulator of Sega Genesis, Sega CD and 32X, combining features from various forks of Gens"
+pkgrel=5
+pkgdesc='An emulator of Sega Genesis, Sega CD and 32X, combining features from various forks of Gens'
 arch=('i686' 'x86_64')
-url="http://segaretro.org/Gens/GS"
+url='http://segaretro.org/Gens/GS'
 license=('GPL')
-if [[ $CARCH == "x86_64" ]]; then
-  makedepends=('gcc-multilib' 'lib32-gtk2' 'lib32-mesa-libgl' 'lib32-sdl' 'nasm')
-  optdepends=('lib32-alsa-plugins: Sound support for PulseAudio'
-              'lib32-libpulse: Sound support for PulseAudio')
-else
-  depends=('gtk2' 'sdl')
-  makedepends=('nasm')
-fi
+makedepends=('nasm')
+depends_i686=('gtk2' 'sdl')
+optdepends_i686=('libcanberra: Hide a silly warning')
+depends_x86_64=('lib32-gtk2' 'lib32-sdl')
+makedepends_x86_64=('gcc-multilib' 'lib32-gtk2' 'lib32-mesa-libgl' 'lib32-sdl')
+optdepends_x86_64=('lib32-alsa-plugins: ALSA sound support'
+                   'lib32-libcanberra: Hide a silly warning'
+                   'lib32-libpulse: PulseAudio sound support')
+provides=('gens')
 conflicts=('gens')
-options=('!libtool')
 source=('http://segaretro.org/images/6/6d/Gens-gs-r7.tar.gz'
         'gens-gtk.patch')
 sha256sums=('6320cd7bee85472891e1e29b21731d2c8180d04db67ee21256491f3f9ad145c1'
@@ -26,35 +26,38 @@
             '29b1e9755b34e00ef7d19bdc527dc4f841400a0022c81ee71c331be4a76a6c1c')
 
 prepare() {
-  cd "${srcdir}"/${pkgname}-r7
+  cd gens-gs-r7
 
   patch -Np1 -i ../gens-gtk.patch
 }
 
 build() {
-  cd "${srcdir}"/${pkgname}-r7
+  cd gens-gs-r7
 
-  if [[ $CARCH == "x86_64" ]]; then
-    export CC="gcc -m32"
-    export CXX="g++ -m32"
-    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
-  fi
+  if [[ $CARCH == x86_64 ]]; then
+    export CC='gcc -m32'
+    export CXX='g++ -m32'
+    export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
 
-  if [[ $CARCH == "x86_64" ]]; then
-    LIBS='-ldl -lX11' ./configure --host=i686-unknown-linux-gnu --prefix=/usr --libdir=/usr/lib32 --with-pic --disable-static
+    LIBS='-ldl -lX11' ./configure \
+      --host='i686-unknown-linux-gnu' \
+      --prefix='/usr' \
+      --libdir='/usr/lib32' \
+      --with-pic \
+      --disable-static
   else
-    LIBS='-ldl -lX11' ./configure --prefix=/usr --with-pic --disable-static
+    LIBS='-ldl -lX11' ./configure \
+      --prefix='/usr' \
+      --with-pic \
+      --disable-static
   fi
+
   make
 }
 
 package() {
-  cd "${srcdir}"/${pkgname}-r7
+  cd gens-gs-r7
 
-  if [[ $CARCH == "x86_64" ]]; then
-    depends=('lib32-gtk2' 'lib32-sdl')
-  fi
-
   make DESTDIR="${pkgdir}" install
 }
 



More information about the arch-commits mailing list