aboutsummaryrefslogtreecommitdiff
path: root/development/jeex/jeex.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-09 05:42:33 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-18 06:58:52 +0700
commit300d8aa517273b33bb9469f008887d1a4f6bfd1d (patch)
tree866270163691eefdf587b46b61a4136d13693d2f /development/jeex/jeex.SlackBuild
parentc624b07bd80e18acaacdccb02d5c23cfa4f5cc38 (diff)
development/jeex: New maintainer, fix build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'development/jeex/jeex.SlackBuild')
-rw-r--r--development/jeex/jeex.SlackBuild47
1 files changed, 31 insertions, 16 deletions
diff --git a/development/jeex/jeex.SlackBuild b/development/jeex/jeex.SlackBuild
index 33d703a488590..9f721affaecf1 100644
--- a/development/jeex/jeex.SlackBuild
+++ b/development/jeex/jeex.SlackBuild
@@ -3,7 +3,8 @@
# Slackware build script for jeex
# Originally by Luis Henrique <lmello.009@gmail.com>
-# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
+# Modified by Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org
+# Now maintained by B. Watson (yalhcru@gmail.com)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -23,15 +24,24 @@
# with this program (most likely, a file named COPYING). If not, see
# <http://www.gnu.org/licenses/>.
+# 20170309 bkw:
+# - take over maintenance
+# - build was failing due to autoconf brain damage, fix
+# - i486 => i586
+# - old homepage MIA, use github
+# - use github download. contents of tarball are identical, but
+# the top-level dir name now matches $VERSION
+# - fix bad permissions (docs, desktop, and /etc/jeex.rc.new were +x)
+# - BUILD=3
+
PRGNAM=jeex
VERSION=${VERSION:-12.6.1}
-DIRVERSION=12.6
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,8 +52,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,27 +73,32 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$DIRVERSION
+cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# upstream's permissions are horrid, don't use standard template here.
+find . -type f -a -exec chmod 644 {} +
+find . -type d -a -exec chmod 755 {} +
+
+# stoopid autoconf requires NEWS and AUTHORS. yeah, you can require them,
+# but you can't force people to actually write documentation in them.
+touch NEWS AUTHORS
+rm -f configure
+autoreconf -if
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
+ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog COPYING README $PKG/usr/doc/$PRGNAM-$VERSION