aboutsummaryrefslogtreecommitdiff
path: root/libraries/libdbusmenu/libdbusmenu.SlackBuild
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2018-11-15 23:40:37 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-17 18:42:47 +0700
commitd5ecec6fd3e12b12e0a9b3ec23c490f17309e580 (patch)
tree6754a1c1695827a5a093cd7031ce9dca1bd970cb /libraries/libdbusmenu/libdbusmenu.SlackBuild
parentb297cdbf7d14856ba69b6bfa64dd894859419501 (diff)
libraries/libdbusmenu: Updated for version 16.04.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/libdbusmenu/libdbusmenu.SlackBuild')
-rw-r--r--libraries/libdbusmenu/libdbusmenu.SlackBuild28
1 files changed, 17 insertions, 11 deletions
diff --git a/libraries/libdbusmenu/libdbusmenu.SlackBuild b/libraries/libdbusmenu/libdbusmenu.SlackBuild
index 536b73abc49b..eef3c5121e29 100644
--- a/libraries/libdbusmenu/libdbusmenu.SlackBuild
+++ b/libraries/libdbusmenu/libdbusmenu.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-
+#
# Slackware build script for libdbusmenu.
-
-# Copyright 2015 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+#
+# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libdbusmenu
-VERSION=${VERSION:-16.04.0}
+VERSION=${VERSION:-16.04.1}
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
@@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
+if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
@@ -54,13 +54,16 @@ else
LIBDIRSUFFIX=""
fi
+SRCVER=${SRCVER:-16.04.1+18.04.20171206}
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-rm -rf $TMP/$PRGNAM-$VERSION
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+rm -rf $PRGNAM-$VERSION
+mkdir -p $PRGNAM-$VERSION
+tar xvf $CWD/${PRGNAM}_${SRCVER}.orig.tar.gz -C $PRGNAM-$VERSION/
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,9 +72,12 @@ 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 {} \;
+patch -p1 < $CWD/0001_no-deprecated-gnome-common-macros.patch
+patch -p1 < $CWD/0002-gtkdoc-check-Move-over-gtkdoc-check-unit-tests-to-th.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+./autogen.sh \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -86,10 +92,10 @@ 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
-DOCS="AUTHORS ChangeLog COPYING* INSTALL NEWS README"
+DOCS="COPYING* INSTALL NEWS README"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
+cp $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
mkdir -p $PKG/install