diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-27 01:40:29 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-08 16:41:57 +0700 |
commit | 122ce4bb05978ac663939af8f935e1ff0f7fa380 (patch) | |
tree | c325b46d7dd8704852fc3decbc2fb3bf5460114c /development | |
parent | 7c380bcbd85fcf61f3859819964fe016b76ab8ef (diff) |
development/git-lfs: Fix man page perms/owner, rm /usr/man/html.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/git-lfs/git-lfs.SlackBuild | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/development/git-lfs/git-lfs.SlackBuild b/development/git-lfs/git-lfs.SlackBuild index 21787ffa1a9ac..071d746d17ada 100644 --- a/development/git-lfs/git-lfs.SlackBuild +++ b/development/git-lfs/git-lfs.SlackBuild @@ -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.3.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -47,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 @@ -73,18 +66,21 @@ 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/ +rm -rf man/html mv man/* $PKG/usr/man/ -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 +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 |