diff options
author | Ivan Kovmir <ikovmir@uninstance.cc> | 2022-08-19 18:57:34 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-08-20 10:06:42 +0700 |
commit | c17a69b878b7672b00fe9730274e99ba0f23e0e1 (patch) | |
tree | 07c96abafeb5e5e1ba63976838b79fba7e993a2f /misc | |
parent | f6b5077ba17bf6976cfb4944e636b4fdf6171ddb (diff) |
misc/untldr: Updated for version 1.1.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/untldr/README | 5 | ||||
-rw-r--r-- | misc/untldr/untldr.SlackBuild | 42 | ||||
-rw-r--r-- | misc/untldr/untldr.info | 6 |
3 files changed, 27 insertions, 26 deletions
diff --git a/misc/untldr/README b/misc/untldr/README index ea6633d4d9f0..0d4abd291c5f 100644 --- a/misc/untldr/README +++ b/misc/untldr/README @@ -1,2 +1,7 @@ +Command line client for https://tldr.sh/ + untldr works fully offline, do not forget to run `tldr -u` to fetch the pages. + +`tldr <page_name>` to view a page. +`tldr -h` to view all the options. diff --git a/misc/untldr/untldr.SlackBuild b/misc/untldr/untldr.SlackBuild index 1b1b68ed431a..96d9e4eca670 100644 --- a/misc/untldr/untldr.SlackBuild +++ b/misc/untldr/untldr.SlackBuild @@ -26,7 +26,7 @@ cd "$(dirname "$0")" ; CWD=$(pwd) PRGNAM=untldr BINNAM=tldr -VERSION=${VERSION:-1.0.0} +VERSION=${VERSION:-1.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -44,19 +44,10 @@ if [ -n "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" -else - SLKCFLAGS="-O2" -fi +TMP="${TMP:-/tmp/SBo}" +SRC="$TMP/$PRGNAM-$VERSION" +PKG="$TMP/package-$PRGNAM" +OUTPUT="${OUTPUT:-/tmp}" set -e @@ -69,15 +60,20 @@ cd $PRGNAM-"$VERSION" chown -R root:root . chmod -R u+w,go+r-w,a-s . -make CFLAGS="$SLKCFLAGS" -make DESTDIR="$PKG" PREFIX="/usr" install -strip -s "$PKG"/usr/bin/$BINNAM +make +DESTDIR="$PKG" PREFIX="/usr" make install +strip -s "$PKG/usr/bin/$BINNAM" + +mkdir -p "$PKG/install" +mkdir -p "$PKG/usr/doc/$PRGNAM-$VERSION" +mkdir -p "$PKG/usr/share/$PRGNAM-$VERSION" +cp "$CWD/$PRGNAM.SlackBuild" "$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild" +cp "$CWD/README" "$PKG/usr/doc/$PRGNAM-$VERSION/README" +cp "$CWD/slack-desc" "$PKG/install/slack-desc" -mkdir -p "$PKG"/install -mkdir -p "$PKG"/usr/doc/$PRGNAM-"$VERSION" -cat "$CWD"/$PRGNAM.SlackBuild > "$PKG"/usr/doc/$PRGNAM-"$VERSION"/$PRGNAM.SlackBuild -cat "$CWD"/README > "$PKG"/usr/doc/$PRGNAM-"$VERSION"/README -cat "$CWD"/slack-desc > "$PKG"/install/slack-desc +# Copy certain things directly from the repository. +cp "$SRC/README.md" "$PKG/usr/share/$PRGNAM-$VERSION/repository-README.md" +cp "$SRC/LICENSE" "$PKG/usr/share/$PRGNAM-$VERSION/LICENSE" cd "$PKG" -/sbin/makepkg -l y -c n "$OUTPUT"/$PRGNAM-"$VERSION"-"$ARCH"-"$BUILD""$TAG"."$PKGTYPE" +/sbin/makepkg -l y -c n "$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" diff --git a/misc/untldr/untldr.info b/misc/untldr/untldr.info index dee129447bed..59b96d532a20 100644 --- a/misc/untldr/untldr.info +++ b/misc/untldr/untldr.info @@ -1,8 +1,8 @@ PRGNAM="untldr" -VERSION="1.0.0" +VERSION="1.1.0" HOMEPAGE="https://github.com/unInstance/untldr" -DOWNLOAD="https://github.com/unInstance/untldr/archive/v1.0.0/untldr-v1.0.0.tar.gz" -MD5SUM="b6c3705dcdde1bbd48e29354df383a3e" +DOWNLOAD="https://github.com/unInstance/untldr/archive/v1.1.0/untldr-v1.1.0.tar.gz" +MD5SUM="6ebb75d889f1c27f7a215242bdb9b122" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |