aboutsummaryrefslogtreecommitdiff
path: root/system/aespipe
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-07-09 16:48:06 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-15 17:30:11 +0700
commit98289decedb2da0018f1ca626186ae95d96ba533 (patch)
tree3dcbfb5ba7845a46f072f75081345c749fbf0fe3 /system/aespipe
parent969cc941a5e944b4c907fb4ad0949579be434898 (diff)
system/aespipe: New maintainer, add bz2aespipe.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/aespipe')
-rw-r--r--system/aespipe/aespipe.SlackBuild48
-rw-r--r--system/aespipe/aespipe.info4
2 files changed, 25 insertions, 27 deletions
diff --git a/system/aespipe/aespipe.SlackBuild b/system/aespipe/aespipe.SlackBuild
index b00abd4b157a9..dde58683f9800 100644
--- a/system/aespipe/aespipe.SlackBuild
+++ b/system/aespipe/aespipe.SlackBuild
@@ -23,13 +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)
+
+# 20230709 bkw: BUILD=2
+# - new maintainer.
+# - include bz2aespipe in package.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=aespipe
VERSION=${VERSION:-2.4f}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -43,9 +47,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 +56,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 +84,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 +100,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
diff --git a/system/aespipe/aespipe.info b/system/aespipe/aespipe.info
index a2ae6076d879b..34ee3013fdf7d 100644
--- a/system/aespipe/aespipe.info
+++ b/system/aespipe/aespipe.info
@@ -6,5 +6,5 @@ MD5SUM="ed05c62c1954110f009bedda4bc1562f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Markus Reichelt"
-EMAIL="slackbuilds@mareichelt.de"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"