diff options
author | Eugene M <damagedone@gmx.com> | 2017-11-03 23:02:35 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-11-03 23:18:39 +0000 |
commit | e98472e5a5dbb87437130d65b0571a1566c7d480 (patch) | |
tree | a908b37c5572fdf206a67a0b121d176f67ee42f3 | |
parent | 85abf79273563b4c749c97a47bb98df770730a54 (diff) | |
download | slackbuilds-e98472e5a5dbb87437130d65b0571a1566c7d480.tar.gz |
graphics/sxiv: Updated for version 24.
They changed numeration.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | graphics/sxiv/doinst.sh | 13 | ||||
-rw-r--r-- | graphics/sxiv/sxiv.SlackBuild | 7 | ||||
-rw-r--r-- | graphics/sxiv/sxiv.info | 6 |
3 files changed, 21 insertions, 5 deletions
diff --git a/graphics/sxiv/doinst.sh b/graphics/sxiv/doinst.sh new file mode 100644 index 0000000000..aea0f894eb --- /dev/null +++ b/graphics/sxiv/doinst.sh @@ -0,0 +1,13 @@ +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 -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/graphics/sxiv/sxiv.SlackBuild b/graphics/sxiv/sxiv.SlackBuild index 3bd232ee81..0766d46b58 100644 --- a/graphics/sxiv/sxiv.SlackBuild +++ b/graphics/sxiv/sxiv.SlackBuild @@ -25,7 +25,7 @@ # Modified by Eugene M., <damagedone at gmx dot com> PRGNAM=sxiv -VERSION=${VERSION:-1.3.2} +VERSION=${VERSION:-24} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -74,9 +74,11 @@ find -L . \ make install \ PREFIX=/usr \ MANPREFIX=/usr/man \ - CFLAGS="-Wall -pedantic $SLKCFLAGS -I/usr/include -DHAVE_GIFLIB" \ + CFLAGS="-std=c99 -Wall -pedantic $SLKCFLAGS -I/usr/include -DHAVE_GIFLIB" \ DESTDIR=$PKG +make -C icon PREFIX=/usr DESTDIR=$PKG install + 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 @@ -91,6 +93,7 @@ install -D -m 0644 ./sxiv.desktop $PKG/usr/share/applications/sxiv.desktop 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:-tgz} diff --git a/graphics/sxiv/sxiv.info b/graphics/sxiv/sxiv.info index 94f16bb607..d51ac9a1d0 100644 --- a/graphics/sxiv/sxiv.info +++ b/graphics/sxiv/sxiv.info @@ -1,8 +1,8 @@ PRGNAM="sxiv" -VERSION="1.3.2" +VERSION="24" HOMEPAGE="https://github.com/muennich/sxiv" -DOWNLOAD="https://github.com/muennich/sxiv/archive/v1.3.2/sxiv-1.3.2.tar.gz" -MD5SUM="44822b3d4672a7ed22f1a14c86a0914f" +DOWNLOAD="https://github.com/muennich/sxiv/archive/v24/sxiv-24.tar.gz" +MD5SUM="a929f8ae19f947a23594fdce2b3cf38d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="imlib2" |