aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorVijay Marcel <vijaymarcel@outlook.com>2024-09-04 22:31:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-04 22:35:22 +0700
commit1707c0c523a93916445c0513e0a0af3cb7f41c4c (patch)
tree586d64c5db197893e26aa474f198f15cdf80919c /office
parent9faf8cd68b30864cceed3b67742ee5f490b5b446 (diff)
office/glow: Updated for version 2.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/glow/changelog6
-rw-r--r--office/glow/glow.SlackBuild13
-rw-r--r--office/glow/glow.info10
3 files changed, 11 insertions, 18 deletions
diff --git a/office/glow/changelog b/office/glow/changelog
deleted file mode 100644
index f23f855be559..000000000000
--- a/office/glow/changelog
+++ /dev/null
@@ -1,6 +0,0 @@
-Changelog for glow SlackBuild Script
---------------------------------------------------------------------
-
-26/05/2023:
-
-Submitted to slackbuilds.org
diff --git a/office/glow/glow.SlackBuild b/office/glow/glow.SlackBuild
index 74a53a8525b5..0da05eb402ab 100644
--- a/office/glow/glow.SlackBuild
+++ b/office/glow/glow.SlackBuild
@@ -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
diff --git a/office/glow/glow.info b/office/glow/glow.info
index 6463735cfbc1..e743e368ff9b 100644
--- a/office/glow/glow.info
+++ b/office/glow/glow.info
@@ -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"