aboutsummaryrefslogtreecommitdiff
path: root/desktop/gmrun/gmrun.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gmrun/gmrun.SlackBuild')
-rw-r--r--desktop/gmrun/gmrun.SlackBuild42
1 files changed, 30 insertions, 12 deletions
diff --git a/desktop/gmrun/gmrun.SlackBuild b/desktop/gmrun/gmrun.SlackBuild
index 26758e62e2694..c5836fb754cda 100644
--- a/desktop/gmrun/gmrun.SlackBuild
+++ b/desktop/gmrun/gmrun.SlackBuild
@@ -1,7 +1,11 @@
#!/bin/sh
-
+#
+# Slackware build script for gmrun.
+#
# Copyright 2010 Binh Nguyen <binhvng@gmail.com>
-# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org
+# Copyright 2014 Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org
+# Copyright 2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +27,12 @@
PRGNAM=gmrun
VERSION=${VERSION:-0.9.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
@@ -39,8 +43,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -69,18 +73,26 @@ 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 {} \;
-# Apply some patches from Fedora's SRPM:
-patch -p1 < $CWD/patches/gmrun-0.9.2-gcc43.patch
-patch -p1 < $CWD/patches/gmrun-0.9.2-mousewheel.patch
-patch -p1 < $CWD/patches/gmrun-gmrunrc.patch
-# And one from Gentoo
-patch -p1 < $CWD/patches/gtkcompletionline.cc.patch
+# Apply some patches from Debian:
+
+patch -p1 < $CWD/patches/10-escaping.patch
+patch -p1 < $CWD/patches/20-includes.patch
+patch -p1 < $CWD/patches/30-fix-gcc-4.3-build.patch
+patch -p1 < $CWD/patches/40-history_string.patch
+patch -p1 < $CWD/patches/50-empty-history.patch
+patch -p1 < $CWD/patches/60-fix_gtkcompletionline.patch
+patch -p1 < $CWD/patches/70-cmdline.patch
+patch -p1 < $CWD/patches/80-selectoption.patch
+patch -p1 < $CWD/patches/90-window_placement.patch
+patch -p1 < $CWD/patches/100-gmrunrc.patch
CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
+ --mandir=/usr/man \
--sysconfdir=/etc \
--build=$ARCH-slackware-linux
@@ -90,6 +102,12 @@ 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 -a $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
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild