|
|
|
@ -6,19 +6,23 @@ |
|
|
|
|
|
|
|
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. |
|
|
|
|
|
|
|
# This thing is very early-90s, and not very much fun to use. However, |
|
|
|
# I never had an Amiga; for someone who grew up with one, maybe this |
|
|
|
# is how they expect GUIs to work. |
|
|
|
|
|
|
|
# One potential TODO: figure out how to make amiwm show up in the |
|
|
|
# list of window managers, in runlevel 4. I don't use runlevel 4 |
|
|
|
# and couldn't figure it out in the 5 minutes I spent looking at it. |
|
|
|
# If you know how to do this, send me a patch. |
|
|
|
# This thing is very early-90s, and not very much fun to use (even |
|
|
|
# for me, who prefers WindowMaker). However, I never had an Amiga; |
|
|
|
# for someone who grew up with one, maybe this is how they expect GUIs |
|
|
|
# to work. |
|
|
|
|
|
|
|
# 20230427 bkw: update for v0.22pl2. |
|
|
|
# - Switched upstreams. Apparently the github version I packaged was a |
|
|
|
# fork. Now I'm using the actual author's version. Thanks to luna on |
|
|
|
# IRC for finding the original site and the new release (also for |
|
|
|
# testing the previous version). |
|
|
|
# - Fix issue with parallel make. |
|
|
|
# - Clean up man page slightly. |
|
|
|
|
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=amiwm |
|
|
|
VERSION=${VERSION:-20170803_8e0948c} |
|
|
|
VERSION=${VERSION:-0.22pl2} |
|
|
|
BUILD=${BUILD:-1} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
|
@ -59,9 +63,9 @@ set -e |
|
|
|
rm -rf $PKG |
|
|
|
mkdir -p $TMP $PKG $OUTPUT |
|
|
|
cd $TMP |
|
|
|
rm -rf $PRGNAM-$VERSION |
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz |
|
|
|
cd $PRGNAM-$VERSION |
|
|
|
rm -rf $PRGNAM$VERSION |
|
|
|
tar xvf $CWD/$PRGNAM$VERSION.tar.gz |
|
|
|
cd $PRGNAM$VERSION |
|
|
|
chown -R root:root . |
|
|
|
# permissions are awful, don't revert to template here. |
|
|
|
find -L . -type d -a -exec chmod 755 {} \+ -o \ |
|
|
|
@ -73,6 +77,12 @@ LIBDIR=/usr/$LIB |
|
|
|
# hardcoded wrong path in config file. |
|
|
|
sed -i "s,/usr/local/lib,$LIBDIR," system.amiwmrc |
|
|
|
|
|
|
|
# 20230427 bkw: man page has confusing wording. also left curly |
|
|
|
# quotes, but the right quotes are straight, which is weird-looking. |
|
|
|
sed -i -e 's,amiwmrc-file,amiwmrc file,' \ |
|
|
|
-e 's,\\f1\\\*(lq\\f3,",g' \ |
|
|
|
amiwm.1 |
|
|
|
|
|
|
|
CFLAGS="$SLKCFLAGS" \ |
|
|
|
CXXFLAGS="$SLKCFLAGS" \ |
|
|
|
sh ./configure \ |
|
|
|
@ -90,6 +100,9 @@ sh ./configure \ |
|
|
|
# have to make the X* files here to avoid having $PKG in them, |
|
|
|
# though it doesn't really matter (we don't use these, they're |
|
|
|
# just there for reference I guess). |
|
|
|
# 20230427 bkw: it occasionally fails with -jN (but not always), |
|
|
|
# because gram.h isn't made before it's needed. so make it first. |
|
|
|
make gram.h |
|
|
|
make libdir=$LIBDIR all Xinitrc Xsession Xsession2 |
|
|
|
make install prefix=$PKG/usr libdir=$PKG/$LIBDIR |
|
|
|
gzip -9 $PKG/usr/man/man*/*.* |
|
|
|
@ -110,7 +123,7 @@ rename rc rc.new $PKG/$LIBDIR/$PRGNAM/system.amiwmrc |
|
|
|
|
|
|
|
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION |
|
|
|
mkdir -p $PKGDOC |
|
|
|
cp -a *.md $PKGDOC |
|
|
|
cp -a README* LICENSE* $PKGDOC |
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild |
|
|
|
|
|
|
|
mkdir -p $PKG/install |
|
|
|
|