summaryrefslogtreecommitdiff
path: root/graphics/sxiv/sxiv.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/sxiv/sxiv.SlackBuild')
-rw-r--r--graphics/sxiv/sxiv.SlackBuild7
1 files changed, 5 insertions, 2 deletions
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}