[arch-commits] Commit in gens/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Sun Jul 9 21:04:15 UTC 2017
Date: Sunday, July 9, 2017 @ 21:04:15
Author: bgyorgy
Revision: 243457
Use depends_x86_64 and depends_i686
Modified:
gens/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-09 20:25:48 UTC (rev 243456)
+++ PKGBUILD 2017-07-09 21:04:15 UTC (rev 243457)
@@ -10,14 +10,12 @@
arch=('i686' 'x86_64')
url='http://gens.sourceforge.net'
license=('GPL')
-if [[ $CARCH == "x86_64" ]]; then
- makedepends=('gcc-multilib' 'lib32-gtk2' 'lib32-mesa-libgl' 'lib32-sdl')
- optdepends=('lib32-alsa-plugins: Sound support for PulseAudio'
- 'lib32-libpulse: Sound support for PulseAudio')
-else
- depends=('gtk2' 'sdl')
-fi
-makedepends+=('gendesk' 'imagemagick' 'nasm')
+depends_i686=('gtk2' 'sdl')
+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: Sound support for PulseAudio'
+ 'lib32-libpulse: Sound support for PulseAudio')
+makedepends=('gendesk' 'imagemagick' 'nasm')
options=('!buildflags')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('51910d3056da9ffbb2c01cfec064998c9a4cad0cb379d703ec1b93c83dba305a')
@@ -43,10 +41,6 @@
package() {
cd ${pkgname}-${pkgver}
- if [[ $CARCH == "x86_64" ]]; then
- depends=('lib32-gtk2' 'lib32-sdl')
- fi
-
make DESTDIR="${pkgdir}" install
install -dm 755 "${pkgdir}"/usr/share/{applications,pixmaps}
More information about the arch-commits
mailing list