summaryrefslogtreecommitdiffstats
path: root/academic/aris/aris.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/aris/aris.SlackBuild')
-rw-r--r--academic/aris/aris.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/academic/aris/aris.SlackBuild b/academic/aris/aris.SlackBuild
index cedc949c26..6230b1e7d5 100644
--- a/academic/aris/aris.SlackBuild
+++ b/academic/aris/aris.SlackBuild
@@ -2,9 +2,11 @@
# Slackware build script for GNU aris
-# Originally written by Juan M. Lasca <juanmlasca at gmail dot com>
-# Currently maintained by Philip Lacroix <slackph at posteo dot de>
-
+# Copyright 2013-2020 Juan M. Lasca <juanmlasca@gmail.com>
+# Copyright 2020-2022 Philip Lacroix <slackph at posteo dot de>
+# Copyright 2022 Juan M. Lasca <juanmlasca@gmail.com>
+# All rights reserved.
+#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
@@ -26,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=aris
VERSION=${VERSION:-2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,15 +74,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \
+CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --disable-static \
--build=$ARCH-slackware-linux
-# Fix path for local manual
-patch src/aris.c < $CWD/help_path.diff
+# Fix path for local manual and multiple symbol definitions
+cat $CWD/docs_and_build.patch | patch -p1 || exit
make
make install DESTDIR=$PKG
@@ -91,7 +89,6 @@ 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
-# Install documentation
mkdir -p $PKG/usr/info $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/$PRGNAM.info $PKG/usr/info/
gzip -9 $PKG/usr/info/$PRGNAM.info