summaryrefslogtreecommitdiff
path: root/graphics/tuxpaint/tuxpaint.SlackBuild
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2019-02-15 07:51:40 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-02-15 07:51:40 +0700
commit287b7c78e514a9cf2bea516e795f8b22f7064cc4 (patch)
tree7f5d4485352842571df02d26dbc77455517227f8 /graphics/tuxpaint/tuxpaint.SlackBuild
parentd2fd5bc342078ad57c5513eaee2eab9b42bf22b7 (diff)
downloadslackbuilds-287b7c78e514a9cf2bea516e795f8b22f7064cc4.tar.gz
graphics/tuxpaint: Added tuxpaint-config.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/tuxpaint/tuxpaint.SlackBuild')
-rw-r--r--graphics/tuxpaint/tuxpaint.SlackBuild36
1 files changed, 33 insertions, 3 deletions
diff --git a/graphics/tuxpaint/tuxpaint.SlackBuild b/graphics/tuxpaint/tuxpaint.SlackBuild
index 41314b7256..9132dc564d 100644
--- a/graphics/tuxpaint/tuxpaint.SlackBuild
+++ b/graphics/tuxpaint/tuxpaint.SlackBuild
@@ -5,10 +5,12 @@
# Written by Pablo Santamaria (pablosantamaria@gmail.com)
# 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
PRGNAM=tuxpaint
VERSION=${VERSION:-0.9.23}
-BUILD=${BUILD:-1}
+CONFVER=${CONFVER:-0.0.14}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -44,6 +46,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-config-$CONFVER
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
@@ -65,10 +68,37 @@ make \
install
mv $PKG/etc/tuxpaint/tuxpaint.conf $PKG/etc/tuxpaint/tuxpaint.conf.new
-
mkdir -p $PKG/usr/share/applications
cp src/$PRGNAM.desktop $PKG/usr/share/applications/
-
+#
+#now for tuxpaint-config
+#
+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
+#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