summaryrefslogtreecommitdiffstats
path: root/network/ddgr
diff options
context:
space:
mode:
Diffstat (limited to 'network/ddgr')
-rw-r--r--network/ddgr/README15
-rw-r--r--network/ddgr/ddgr.SlackBuild26
-rw-r--r--network/ddgr/ddgr.info8
3 files changed, 30 insertions, 19 deletions
diff --git a/network/ddgr/README b/network/ddgr/README
index 2e0b99c118..b47c24434f 100644
--- a/network/ddgr/README
+++ b/network/ddgr/README
@@ -1,11 +1,12 @@
-ddgr is a cmdline utility to search DuckDuckGo from the terminal. While googler is
-highly popular among cmdline users, in many forums the need of a similar utility for
-privacy-aware DuckDuckGo came up. DuckDuckGo Bangs are super-cool too! So here's ddgr
-for you!
+ddgr is a cmdline utility to search DuckDuckGo from the
+terminal. While googler is highly popular among cmdline users, in many
+forums the need of a similar utility for privacy-aware DuckDuckGo came
+up. DuckDuckGo Bangs are super-cool too! So here's ddgr for you!
-Unlike the web interface, you can specify the number of search results you would like to
-see per page. It's more convenient than skimming through 30-odd search results per page.
-The default interface is carefully designed to use minimum space without sacrificing
+Unlike the web interface, you can specify the number of search results
+you would like to see per page. It's more convenient than skimming
+through 30-odd search results per page. The default interface
+is carefully designed to use minimum space without sacrificing
readability.
ddgr isn't affiliated to DuckDuckGo in any way.
diff --git a/network/ddgr/ddgr.SlackBuild b/network/ddgr/ddgr.SlackBuild
index 34cc761e2d..f6e7f45712 100644
--- a/network/ddgr/ddgr.SlackBuild
+++ b/network/ddgr/ddgr.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ddgr
-# Copyright 2017-2019 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2017-2022 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ddgr
-VERSION=${VERSION:-1.6}
+VERSION=${VERSION:-1.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -77,9 +87,9 @@ mkdir -p $PKG/usr/bin
install -D -m0755 $PRGNAM $PKG/usr/bin
# Install bash completion file
-mkdir -p $PKG/etc/bash_completion.d
-install -D -m0744 auto-completion/bash/${PRGNAM}-completion.bash \
- $PKG/etc/bash_completion.d/${PRGNAM}-completion.bash
+mkdir -p $PKG/usr/share/bash-completion/completions
+install -D -m0644 auto-completion/bash/${PRGNAM}-completion.bash \
+ $PKG/usr/share/bash-completion/completions/$PRGNAM
# Install zsh completion file
mkdir -p $PKG/usr/share/site-functions
@@ -105,4 +115,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/ddgr/ddgr.info b/network/ddgr/ddgr.info
index e08deaa726..340cf91bcc 100644
--- a/network/ddgr/ddgr.info
+++ b/network/ddgr/ddgr.info
@@ -1,10 +1,10 @@
PRGNAM="ddgr"
-VERSION="1.6"
+VERSION="1.9"
HOMEPAGE="https://github.com/jarun/ddgr"
-DOWNLOAD="https://github.com/jarun/ddgr/archive/v1.6/ddgr-1.6.tar.gz"
-MD5SUM="6951ea48c661baa0742720287070aafa"
+DOWNLOAD="https://github.com/jarun/ddgr/archive/v1.9/ddgr-1.9.tar.gz"
+MD5SUM="c1f307709665e19db1cc65a04d1402f3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3"
+REQUIRES=""
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"