summaryrefslogtreecommitdiffstats
path: root/development/git-lfs/git-lfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/git-lfs/git-lfs.SlackBuild')
-rw-r--r--development/git-lfs/git-lfs.SlackBuild42
1 files changed, 18 insertions, 24 deletions
diff --git a/development/git-lfs/git-lfs.SlackBuild b/development/git-lfs/git-lfs.SlackBuild
index 8f91abb17c..44294b3432 100644
--- a/development/git-lfs/git-lfs.SlackBuild
+++ b/development/git-lfs/git-lfs.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for git-lfs
-# Copyright 2015-2022 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2015-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,11 +22,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230627 bkw: BUILD=3
+# - Fix man page permissions (missing chown and find/chmod from template).
+# - Get rid of /usr/man/html. Our man-db doesn't know how to display HTML,
+# and it's redundant anyway (we have the same docs as regular man pages).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=git-lfs
-VERSION=${VERSION:-3.1.4}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-3.5.1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +43,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
@@ -50,21 +52,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
- SRCARCH=386
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
- SRCARCH=386
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+if [ "$ARCH" = "x86_64" ]; then
SRCARCH=amd64
else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
SRCARCH=386
fi
@@ -75,18 +65,22 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-linux-$SRCARCH-v$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
mkdir -p $PKG/usr/bin
install -m0755 $PRGNAM $PKG/usr/bin
rm -f install.sh
-mkdir -p $PKG/usr/man/man1/
-mv man/* $PKG/usr/man/man1/
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+mkdir -p $PKG/usr/man/
+rm -rf man/html
+mv man/* $PKG/usr/man/
+gzip -9 $PKG/usr/man/man*/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp *.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install