summaryrefslogtreecommitdiffstats
path: root/system/aespipe/aespipe.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/aespipe/aespipe.SlackBuild')
-rw-r--r--system/aespipe/aespipe.SlackBuild49
1 files changed, 24 insertions, 25 deletions
diff --git a/system/aespipe/aespipe.SlackBuild b/system/aespipe/aespipe.SlackBuild
index b00abd4b15..8cbe4a355f 100644
--- a/system/aespipe/aespipe.SlackBuild
+++ b/system/aespipe/aespipe.SlackBuild
@@ -23,12 +23,17 @@
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# markus reichelt, slackbuilds@mareichelt.de, 0xCCEEF115
+# markus reichelt, (email removed)
+
+# 20231031 bkw: update for v2.4g.
+# 20230709 bkw: BUILD=2
+# - new maintainer.
+# - include bz2aespipe in package.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=aespipe
-VERSION=${VERSION:-2.4f}
+VERSION=${VERSION:-2.4g}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -43,9 +48,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
@@ -55,24 +57,25 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+OPT="--enable-padlock --enable-intelaes"
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
- OPT="--enable-asm=x86 --enable-padlock --enable-intelaes"
+ OPT+=" --enable-asm=x86"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
- OPT="--enable-asm=x86 --enable-padlock --enable-intelaes"
+ OPT+=" --enable-asm=x86"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
- OPT="--enable-asm=amd64 --enable-padlock --enable-intelaes"
+ OPT+=" --enable-asm=amd64"
+elif [ "$ARCH" = "aarch64" ]; then # hope this is correct
+ SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
- OPT=""
fi
+echo "===> configure options: $OPT"
+
set -e
rm -rf $PKG
@@ -82,11 +85,8 @@ rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2
cd $PRGNAM-$SRCVER
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 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
set -e
@@ -101,18 +101,17 @@ fi
LDFLAGS=$LDFLAGS \
CFLAGS=$SLKCFLAGS \
./configure \
- --bindir=$PKG/usr/bin \
- --mandir=$PKG/usr/man \
+ --bindir=/usr/bin \
+ --mandir=/usr/man \
$OPT
make
make tests
-make install
-
-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
+gzip -9 $PKG/usr/man/man*/*
-find $PKG/usr/man/man1 -type f -exec gzip -9 {} \;
+# 20230709 bkw: this loox useful and the README shows an example for it:
+cp -a bz2aespipe $PKG/usr/bin
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README* ChangeLog* $PKG/usr/doc/$PRGNAM-$VERSION