summaryrefslogtreecommitdiffstats
path: root/desktop/gmrun
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gmrun')
-rw-r--r--desktop/gmrun/doinst.sh3
-rw-r--r--desktop/gmrun/gmrun.SlackBuild28
-rw-r--r--desktop/gmrun/gmrun.info6
3 files changed, 23 insertions, 14 deletions
diff --git a/desktop/gmrun/doinst.sh b/desktop/gmrun/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/desktop/gmrun/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/desktop/gmrun/gmrun.SlackBuild b/desktop/gmrun/gmrun.SlackBuild
index 0363d1c612..0b4dd3fd3d 100644
--- a/desktop/gmrun/gmrun.SlackBuild
+++ b/desktop/gmrun/gmrun.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for gmrun.
#
# Copyright 2010 Binh Nguyen <binhvng@gmail.com>
# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org
-# Copyright 2017-2021 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2017-2023 Edinaldo P. Silva, Rio de Janeiro, Brazil.
#
# All rights reserved.
#
@@ -25,10 +25,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=gmrun
-VERSION=${VERSION:-1.0w}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-1.4w}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,7 +41,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}
@@ -73,8 +83,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-autoreconf -fiv
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -91,9 +99,6 @@ make install DESTDIR=$PKG
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
-mkdir -p $PKG/usr/man/man1
-cp $CWD/gmrun.1 $PKG/usr/man/man1
-
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
@@ -102,7 +107,8 @@ cp AUTHORS ChangeLog README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
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/desktop/gmrun/gmrun.info b/desktop/gmrun/gmrun.info
index fdc4ab1601..74456cd0e5 100644
--- a/desktop/gmrun/gmrun.info
+++ b/desktop/gmrun/gmrun.info
@@ -1,8 +1,8 @@
PRGNAM="gmrun"
-VERSION="1.0w"
+VERSION="1.4w"
HOMEPAGE="https://github.com/wdlkmpx/gmrun/"
-DOWNLOAD="https://github.com/wdlkmpx/gmrun/archive/1.0w/gmrun-1.0w.tar.gz"
-MD5SUM="e2f776e412b0dc17f7f5b5c2e595bda1"
+DOWNLOAD="https://github.com/wdlkmpx/gmrun/archive/1.4w/gmrun-1.4w.tar.gz"
+MD5SUM="45b7a88c0dbf2ec4c15f469537eda106"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""