summaryrefslogtreecommitdiff
path: root/desktop/searchmonkey/searchmonkey.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2017-06-14 15:15:34 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-15 18:35:57 +0700
commitec3e5e52d949c6a6478c6c566ec27b66a492b4d5 (patch)
tree13dfd4dce246146c4c98547d7df7207929288201 /desktop/searchmonkey/searchmonkey.SlackBuild
parent65d9536a464d59fa3de38694acb9ae1f92f3bfd5 (diff)
downloadslackbuilds-ec3e5e52d949c6a6478c6c566ec27b66a492b4d5.tar.gz
desktop/searchmonkey: Updated for version 2.0.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/searchmonkey/searchmonkey.SlackBuild')
-rw-r--r--desktop/searchmonkey/searchmonkey.SlackBuild55
1 files changed, 33 insertions, 22 deletions
diff --git a/desktop/searchmonkey/searchmonkey.SlackBuild b/desktop/searchmonkey/searchmonkey.SlackBuild
index a950fbeca9..b1c2ef0824 100644
--- a/desktop/searchmonkey/searchmonkey.SlackBuild
+++ b/desktop/searchmonkey/searchmonkey.SlackBuild
@@ -22,13 +22,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=searchmonkey
-VERSION=${VERSION:-0.8.1}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -39,8 +39,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"
@@ -58,9 +58,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf ${PRGNAM}_v$VERSION
+unzip $CWD/${PRGNAM}_src_v$VERSION.zip
+cd ${PRGNAM}_v$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -68,29 +68,40 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --build=$ARCH-slackware-linux
+patch -p1 --verbose <$CWD/searchmonkey-2.0.0-gcc4.7.patch
+qmake \
+ QMAKE_CFLAGS="$SLKCFLAGS" \
+ QMAKE_CXXFLAGS="$SLKCFLAGS"
make
-make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/bin $PKG/usr/share/pixmaps \
+ $PKG/usr/share/applications \
+ $PKG/usr/share/icons/hicolor/{16x16,22x22,24x24,32x32,48x48,96x96}/apps
+
+cp searchmonkey $PKG/usr/bin
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-cp $PKG/usr/share/pixmaps/searchmonkey/searchmonkey-32x32.png \
- $PKG/usr/share/pixmaps/searchmonkey/searchmonkey.png
+cp pixmaps/searchmonkey-32x32.png \
+ $PKG/usr/share/pixmaps/searchmonkey.png
+cp pixmaps/searchmonkey-16x16.png \
+ $PKG/usr/share/icons/hicolor/16x16/apps/searchmonkey.png
+cp pixmaps/searchmonkey-22x22.png \
+ $PKG/usr/share/icons/hicolor/22x22/apps/searchmonkey.png
+cp pixmaps/searchmonkey-24x24.png \
+ $PKG/usr/share/icons/hicolor/24x24/apps/searchmonkey.png
+cp pixmaps/searchmonkey-32x32.png \
+ $PKG/usr/share/icons/hicolor/32x32/apps/searchmonkey.png
+cp pixmaps/searchmonkey-48x48.png \
+ $PKG/usr/share/icons/hicolor/48x48/apps/searchmonkey.png
+cp pixmaps/searchmonkey-96x96.png \
+ $PKG/usr/share/icons/hicolor/96x96/apps/searchmonkey.png
+
+cp $CWD/searchmonkey.desktop $PKG/usr/share/applications
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING.LESSER ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install