aboutsummaryrefslogtreecommitdiff
path: root/graphics/tuxpaint/tuxpaint.SlackBuild
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2020-06-02 08:26:46 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-02 08:26:46 +0700
commit5db2df43931492aa2d3a8d4b0d8d43ba9d170391 (patch)
tree5a5b54d0219e6dce82c4a2041b8cda5c01a4db37 /graphics/tuxpaint/tuxpaint.SlackBuild
parente50bf82af5f36287b1eb69b0a7851b01ce0bbc92 (diff)
graphics/tuxpaint: Updated for version 0.9.24.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/tuxpaint/tuxpaint.SlackBuild')
-rw-r--r--graphics/tuxpaint/tuxpaint.SlackBuild40
1 files changed, 14 insertions, 26 deletions
diff --git a/graphics/tuxpaint/tuxpaint.SlackBuild b/graphics/tuxpaint/tuxpaint.SlackBuild
index 598a1285766f..b486609124d5 100644
--- a/graphics/tuxpaint/tuxpaint.SlackBuild
+++ b/graphics/tuxpaint/tuxpaint.SlackBuild
@@ -6,12 +6,11 @@
# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
# Taken over maintenance (and some updates) by Tim Dickson (dickson.tim@googlemail.com)
# added tuxpaint-config 2019-02-11
-#added missing dep.
PRGNAM=tuxpaint
-VERSION=${VERSION:-0.9.23}
-CONFVER=${CONFVER:-0.0.14}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-0.9.24}
+CONFVER=${CONFVER:-0.0.15}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -77,28 +76,17 @@ cp src/$PRGNAM.desktop $PKG/usr/share/applications/
cd ..
tar xvf $CWD/$PRGNAM-config-$CONFVER.tar.gz
cd $PRGNAM-config-$CONFVER
-make
-#unfortunately tuxpaint-config does not have DESTDIR configured, so we
-#have to do things by hand. copy executable, icons and desktop file and man
-mkdir -p $PKG/usr/bin
-cp $PRGNAM-config $PKG/usr/bin/
-mkdir -p $PKG/usr/share/pixmaps
-cp data/images/icon.png $PKG/usr/share/pixmaps/$PRGNAM-config.png
-cp data/images/icon32x32.xpm $PKG/usr/share/pixmaps/$PRGNAM-config.xpm
-for i in "16x16" "32x32" "48x48"; do
- mkdir -p $PKG/usr/share/icons/hicolor/$i
- cp data/images/icon$i.png $PKG/usr/share/icons/hicolor/$i/$PRGNAM-config.png
-done
-mkdir -p $PKG/usr/share/applications
-cp src/$PRGNAM-config.desktop $PKG/usr/share/applications/$PRGNAM-config.desktop
-mkdir -p $PKG/usr/man/man1
-cp src/$PRGNAM-config.1 $PKG/usr/man/man1/$PRGNAM-config.1
-gzip -9f $PKG/usr/man/man1/$PRGNAM-config.1
-#finally for translation files
-for i in `ls trans`; do
- mkdir -p $PKG/usr/share/locale/$i/LC_MESSAGES
- cp trans/$i $PKG/usr/share/locale/$i/LC_MESSAGES/$PRGNAM-config.mo
-done
+make PREFIX=/usr LIBDIRSUFFIX=$LIBDIRSUFFIX OPTFLAGS="$SLKCFLAGS"
+make \
+ MAN_PREFIX=/usr/man \
+ DEVMAN_PREFIX=/usr/man \
+ DOC_PREFIX=/usr/doc/$PRGNAM-$VERSION \
+ DEVDOC_PREFIX=/usr/doc/$PRGNAM-$VERSION \
+ PREFIX=/usr \
+ LIBDIRSUFFIX=$LIBDIRSUFFIX \
+ DESTDIR=$PKG \
+ install
+
#now sanitize stuff.
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