|
|
@ -3,7 +3,7 @@ |
|
|
|
# Slackware build script for git-fame |
|
|
|
|
|
|
|
# Copyright 2017-2021 Andrew Clemons, Wellington New Zealand |
|
|
|
# Copyright 2022-2023 Andrew Clemons, Tokyo Japan |
|
|
|
# Copyright 2022-2024 Andrew Clemons, Tokyo Japan |
|
|
|
# All rights reserved. |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
@ -26,7 +26,8 @@ |
|
|
|
cd $(dirname $0) ; CWD=$(pwd) |
|
|
|
|
|
|
|
PRGNAM=git-fame |
|
|
|
VERSION=${VERSION:-2.0.1} |
|
|
|
SRCNAM=${SRCNAM:-$(printf '%s\n' "$PRGNAM" | tr '-' '_')} |
|
|
|
VERSION=${VERSION:-2.0.2} |
|
|
|
BUILD=${BUILD:-2} |
|
|
|
TAG=${TAG:-_SBo} |
|
|
|
PKGTYPE=${PKGTYPE:-tgz} |
|
|
@ -57,6 +58,9 @@ elif [ "$ARCH" = "i686" ]; then |
|
|
|
elif [ "$ARCH" = "x86_64" ]; then |
|
|
|
SLKCFLAGS="-O2 -fPIC" |
|
|
|
LIBDIRSUFFIX="64" |
|
|
|
elif [ "$ARCH" = "aarch64" ]; then |
|
|
|
SLKCFLAGS="-O2 -fPIC" |
|
|
|
LIBDIRSUFFIX="64" |
|
|
|
else |
|
|
|
SLKCFLAGS="-O2" |
|
|
|
LIBDIRSUFFIX="" |
|
|
@ -67,9 +71,9 @@ set -e |
|
|
|
rm -rf $PKG |
|
|
|
mkdir -p $TMP $PKG $OUTPUT |
|
|
|
cd $TMP |
|
|
|
rm -rf $PRGNAM-$VERSION |
|
|
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz |
|
|
|
cd $PRGNAM-$VERSION |
|
|
|
rm -rf $SRCNAM-$VERSION |
|
|
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz |
|
|
|
cd $SRCNAM-$VERSION |
|
|
|
chown -R root:root . |
|
|
|
find -L . \ |
|
|
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ |
|
|
@ -77,7 +81,8 @@ 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 {} \; |
|
|
|
|
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
python3 -m build --wheel --no-isolation |
|
|
|
python3 -m installer --destdir "$PKG" dist/*.whl |
|
|
|
|
|
|
|
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 |
|
|
|