summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-11-12 16:50:01 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-14 17:16:48 +0700
commit28817f974c587ca5a36f059deb868832f42238fb (patch)
tree314f6403f812dda987f5da047dc9431fb3e01657
parentc4a6f5938df7b35ede9c6b6d6bce611281121942 (diff)
downloadslackbuilds-28817f974c587ca5a36f059deb868832f42238fb.tar.gz
games/golly: Updated for version 4.0.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/golly/golly.SlackBuild66
-rw-r--r--games/golly/golly.desktop2
-rw-r--r--games/golly/golly.info8
3 files changed, 42 insertions, 34 deletions
diff --git a/games/golly/golly.SlackBuild b/games/golly/golly.SlackBuild
index b510769780..2fd8c86b98 100644
--- a/games/golly/golly.SlackBuild
+++ b/games/golly/golly.SlackBuild
@@ -24,6 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Updated for golly 2.6 -- the source directory structure got changed a bit too!
+# 20201112 bkw: update for v4.0. Which adds a python3 dep.
# 20181211 bkw:
# - Take over maintenance.
# - i486 => i586.
@@ -35,7 +36,7 @@
# - Minor simplifications and cleanups.
PRGNAM=golly
-VERSION=${VERSION:-3.2}
+VERSION=${VERSION:-4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -88,45 +89,52 @@ if [ -z "$WXCONF" ]; then
exit 1
fi
-cd gui-wx/configure
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --with-wx-config="$WXCONF" \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --bindir=/usr/games \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-make
-make install-strip DESTDIR=$PKG
-
-cd ../icons
-
+SHAREDIR=/usr/share/games/$PRGNAM
+
+# 20201112 bkw: golly is the only project I ever heard of that
+# migrated from autotools back to a plain Makefile. So we can't build
+# versions < 4.0 any more, sorry.
+# We don't enable sound because it needs a proprietary non-free
+# library called irrKlang, which we don't (yet?) have on SBo and
+# I'm in no hurry to add.
+cd gui-wx
+cat > local-gtk.mk <<EOF
+WX_CONFIG = $WXCONF
+PYTHON = python3
+ENABLE_PERL = 1
+CXXFLAGS = $SLKCFLAGS
+GOLLYDIR = $SHAREDIR
+EOF
+
+make -f makefile-gtk
+
+cd ..
+mkdir -p $PKG/usr/games $PKG/$SHAREDIR
+install -s -m0755 $PRGNAM b$PRGNAM $PKG/usr/games
+cp -a Help Patterns Rules Scripts $PKG/$SHAREDIR
+
+# Don't need +x permissions on HTML pages, or even Lua/Python scripts.
+find $PKG/$SHAREDIR -type f -exec chmod 644 {} +
+
+cd gui-wx/icons
for i in 16 32 48; do
- convert appicon${i}.ico -resize ${i}x${i}! $PRGNAM-${i}.png
- mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps/
- install -D -m 0644 $PRGNAM-${i}.png \
- $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
+ convert appicon${i}.ico -resize ${i}x${i}! $PRGNAM-${i}.png
+ DIR=$PKG/usr/share/icons/hicolor/${i}x${i}/apps/
+ mkdir -p $DIR
+ install -m 0644 $PRGNAM-${i}.png $DIR/$PRGNAM.png
done
-convert appicon.xpm $PRGNAM.png
-install -D -m 0644 $PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+mkdir -p $PKG/usr/share/pixmaps
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
cd ../../docs
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a License.html ReadMe.html ToDo.html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# 20181211 bkw: WARNING: gzip test failed on <...>/weekender-distaff.rle.gz
# Get rid of .gz extension for any non-gzipped data files.
-find $PKG/usr/share/$PRGNAM -name \*.gz | while read FILE; do
+find $PKG/$SHAREDIR -name \*.gz | while read FILE; do
if file $FILE | grep -qv gzip ; then
rename .gz '' "$FILE"
fi
diff --git a/games/golly/golly.desktop b/games/golly/golly.desktop
index 7fabc82f77..b5d1f6baf6 100644
--- a/games/golly/golly.desktop
+++ b/games/golly/golly.desktop
@@ -3,6 +3,6 @@ Name=Golly
Type=Application
Comment=Cellular Automata Simulator
Terminal=false
-Exec=golly
+Exec=/usr/games/golly
Icon=golly
Categories=Game;
diff --git a/games/golly/golly.info b/games/golly/golly.info
index 70156573d3..d4bcd21a5a 100644
--- a/games/golly/golly.info
+++ b/games/golly/golly.info
@@ -1,10 +1,10 @@
PRGNAM="golly"
-VERSION="3.2"
+VERSION="4.0"
HOMEPAGE="http://golly.sourceforge.net/"
-DOWNLOAD="http://sourceforge.net/projects/golly/files/golly/golly-3.2/golly-3.2-src.tar.gz"
-MD5SUM="9d14cdf88fdab1f3c4de36e226506bfa"
+DOWNLOAD="http://sourceforge.net/projects/golly/files/golly/golly-4.0/golly-4.0-src.tar.gz"
+MD5SUM="1f8713687745b542473b4218ed1cf05a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="wxGTK3"
+REQUIRES="wxGTK3 python3"
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"