Package Details: bennugd-modules 356-1

Git Clone URL: https://aur.archlinux.org/bennugd-modules.git (read-only, click to copy)
Package Base: bennugd-modules
Description: a programming language to create games (Fenix successor) - modules
Upstream URL: http://sourceforge.net/projects/bennugd/
Licenses: zlib
Submitter: jose1711
Maintainer: jose1711 (jdupouy)
Last Packager: jdupouy
Votes: 2
Popularity: 0.000000
First Submitted: 2009-12-24 21:45 (UTC)
Last Updated: 2022-06-30 03:34 (UTC)

Latest Comments

jdupouy commented on 2022-06-29 19:57 (UTC)

Here below you will find a patch to update bennugd to release 356 and to allow building on a x86_64 architecture using lib32 dependencies.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Julien Dupouy
Date: Wed, 29 Jun 2022 16:55:29 -0300
Subject: [PATCH] Update bennugd release

---
 PKGBUILD | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 26bcff1..9446d81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,32 @@
 # Maintainer: Jozef Riha <jose1711 at gmail dot com>

 pkgname=bennugd-modules
-pkgver=353
+pkgver=356
 pkgrel=1
 pkgdesc="a programming language to create games (Fenix successor) - modules"
 arch=('i686' 'x86_64')
 url="http://sourceforge.net/projects/bennugd/"
 license=('zlib')
 depends=('zlib' 'bennugd-core' 'sdl_mixer' 'libpng')
-source=("http://sourceforge.net/code-snapshots/svn/b/be/bennugd/code/bennugd-code-r${pkgver}.zip")
+if [[ "$CARCH" = "x86_64" ]]; then
+    depends=('lib32-zlib' 'bennugd-core' 'lib32-sdl_mixer' 'lib32-libpng')
+fi
+source=("https://sourceforge.net/code-snapshots/svn/b/be/bennugd/code/bennugd-code-r${pkgver}.zip")
 md5sums=('SKIP')

 prepare() {
-  cd $srcdir/bennugd-code-r${pkgver}/modules
-  chmod +x ./configure
-  sed -i -e 's/info_ptr->trans_values/info_ptr->trans_color/' -e 's/info_ptr->trans[^_]/info_ptr->trans_alpha/' mod_map/file_png.c
-  sed -i -e '/fmul/s%^%// %' -e '/fdiv/s%^%// %' ../core/include/fmath.h
+    cd $srcdir/bennugd-code-r${pkgver}/modules
+    chmod +x ./configure
+    sed -i -e 's/info_ptr->trans_values/info_ptr->trans_color/' -e 's/info_ptr->trans[^_]/info_ptr->trans_alpha/' mod_map/file_png.c
+    sed -i -e '/fmul/s%^%// %' -e '/fdiv/s%^%// %' ../core/include/fmath.h
 }

 build() {
-  cd $srcdir/bennugd-code-r${pkgver}/modules
-  ./configure --prefix=/usr --build=i686-pc-linux-gnu
-  make
+    cd $srcdir/bennugd-code-r${pkgver}/modules
+    ./configure --prefix=/usr --build=i686-pc-linux-gnu
+    make
 }

 package() {
-  cd $srcdir/bennugd-code-r${pkgver}/modules
-  make DESTDIR=${pkgdir} install
+    make -C $srcdir/bennugd-code-r${pkgver}/modules DESTDIR=${pkgdir} install
 }
-- 
2.36.1