office/glow: Updated for version 2.0.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2024-09-04 22:31:12 +07:00 committed by Willy Sudiarto Raharjo
parent 9faf8cd68b
commit 1707c0c523
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 11 additions and 18 deletions

View file

@ -1,6 +0,0 @@
Changelog for glow SlackBuild Script
--------------------------------------------------------------------
26/05/2023:
Submitted to slackbuilds.org

View file

@ -2,7 +2,7 @@
# Slackware build script for glow
# Copyright 2023 Vijay Marcel
# Copyright 2023-2024 Vijay Marcel
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,12 +25,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=glow
VERSION=${VERSION:-1.5.1}
VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
sys_arch=${sys_arch:-$(uname -m)}
SRCNAM=${SRCNAM:-glow_Linux_}
SRCNAM=${SRCNAM:-glow_2.0.0_Linux_}
case "$sys_arch" in
i?86)
@ -44,9 +44,7 @@ case "$sys_arch" in
*) echo "This slackbuild will only run x86and x86_64 only exiting" && exit 1 ;;
esac
# 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
@ -82,6 +80,7 @@ rm -rf $PRGNAM-$VERSION
mkdir -pv $TMP/$PRGNAM-$VERSION
tar xvf "$CWD/$SRCNAM$SRCARCH.tar.gz" -C $TMP/$PRGNAM-$VERSION
cd $PRGNAM-$VERSION
cd $SRCNAM$SRCARCH
chown -R root:root .
find -L . \
@ -101,7 +100,7 @@ install -Dvm0644 completions/glow.fish -t $PKG/usr/share/fish/vendor_completions
install -Dvm0644 completions/glow.zsh -t $PKG/usr/share/zsh/site-functions/_glow
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
| cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION

View file

@ -1,10 +1,10 @@
PRGNAM="glow"
VERSION="1.5.1"
VERSION="2.0.0"
HOMEPAGE="https://github.com/charmbracelet/glow"
DOWNLOAD="https://github.com/charmbracelet/glow/releases/download/v1.5.1/glow_Linux_i386.tar.gz"
MD5SUM="f19014a5c14eca4dd06ec77eb0dd6e39"
DOWNLOAD_x86_64="https://github.com/charmbracelet/glow/releases/download/v1.5.1/glow_Linux_x86_64.tar.gz"
MD5SUM_x86_64="59efedeb72857c093d22aaded1a45f5f"
DOWNLOAD="https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_Linux_i386.tar.gz"
MD5SUM="8247510d997f6064692d0b1910d84bca"
DOWNLOAD_x86_64="https://github.com/charmbracelet/glow/releases/download/v2.0.0/glow_2.0.0_Linux_x86_64.tar.gz"
MD5SUM_x86_64="4114085fd5f29be56f806d7cf5fcef64"
REQUIRES=""
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"