From 7149c26425df3379067b3254ef8be977b9cedf3d Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 1 May 2014 11:54:33 +0700 Subject: [PATCH] yelp: Upgraded to 3.12.0. Signed-off-by: Willy Sudiarto Raharjo --- testing/yelp/doinst.sh | 19 +++++++++++++++++++ testing/yelp/yelp.SlackBuild | 27 ++++++--------------------- 2 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 testing/yelp/doinst.sh diff --git a/testing/yelp/doinst.sh b/testing/yelp/doinst.sh new file mode 100644 index 0000000..ed28460 --- /dev/null +++ b/testing/yelp/doinst.sh @@ -0,0 +1,19 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +if [ -e usr/share/glib-2.0/schemas ]; then + if [ -x /usr/bin/glib-compile-schemas ]; then + /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas >/dev/null 2>&1 + fi +fi diff --git a/testing/yelp/yelp.SlackBuild b/testing/yelp/yelp.SlackBuild index 5add70e..175e7a3 100644 --- a/testing/yelp/yelp.SlackBuild +++ b/testing/yelp/yelp.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=yelp -VERSION=${VERSION:-3.10.2} +VERSION=${VERSION:-3.12.0} BUILD=${BUILD:-1} TAG=${TAG:-_msb} @@ -35,7 +35,7 @@ if [ -z "$ARCH" ]; then esac fi -wget -c ftp://ftp.gnome.org/pub/gnome/sources/yelp/3.10/$PRGNAM-$VERSION.tar.xz +wget -c ftp://ftp.gnome.org/pub/gnome/sources/yelp/3.12/$PRGNAM-$VERSION.tar.xz NUMJOBS=${NUMJOBS:-" -j8 "} @@ -82,7 +82,8 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-static \ + --enable-static=no \ + --disable-schemas-compile \ --build=$ARCH-slackware-linux make $NUMJOBS || make @@ -91,31 +92,15 @@ 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 -# Compress and link manpages -if [ -d $PKG/usr/man ]; then - ( cd $PKG/usr/man - for manpagedir in $(find . -type d -name "man*") ; do - ( cd $manpagedir - for eachpage in $( find . -type l -maxdepth 1) ; do - ln -s $( readlink $eachpage ).gz $eachpage.gz - rm $eachpage - done - gzip -9 *.? - ) - done - ) -fi - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS COPYING* ChangeLog INSTALL NEWS README \ - $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 find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \; chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}