summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiorgio Peron <giorgio.peron@gmail.com>2021-05-19 09:57:40 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-19 18:39:58 +0700
commitc29c101ae42fa7e7bc2a7b44259382682417fe7c (patch)
tree8dbd293c130978757ab888ef748ebec43403fce2
parent735d13dd097d234aad117fe6ebd7351523a72f98 (diff)
downloadslackbuilds-c29c101ae42fa7e7bc2a7b44259382682417fe7c.tar.gz
academic/ktikz: Updated for version 0.13.2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--academic/ktikz/ktikz.SlackBuild48
-rw-r--r--academic/ktikz/ktikz.info6
2 files changed, 32 insertions, 22 deletions
diff --git a/academic/ktikz/ktikz.SlackBuild b/academic/ktikz/ktikz.SlackBuild
index 71c10fef06..5a98183d62 100644
--- a/academic/ktikz/ktikz.SlackBuild
+++ b/academic/ktikz/ktikz.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ktikz
-# Copyright 2012 Giorgio Peron Campodarsego, PD, Italy
+# Copyright 2021 Giorgio Peron <giorgio.peron@gmail.com> Belluno Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,13 +24,13 @@
PRGNAM=ktikz
-VERSION=${VERSION:-0.10}
+VERSION=${VERSION:-0.13.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -41,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -63,36 +63,46 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-tar xvzf $CWD/$PRGNAM\_$VERSION.tar.gz
-cd $PRGNAM
+rm -rf $PRGNAM-$VERSION
+tar xvzf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# Comedy sed command thanks to Arch :-)
-sed -e 's|\\\\\\||g' -i app/CMakeLists.txt
-
-cmake \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p build{,qt}
+cd build
+cmake .. \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
+ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
+cd -
+cd buildqt
+qmake ../qtikz.pro
+make
+cd -
+cd build
make install DESTDIR=$PKG
+cd -
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
+mkdir -p $PKG/usr
+mv $PKG/usr/share/man $PKG/usr/
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/share/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/
+rm -rf $PKG/usr/share/doc
cp -a \
- Changelog HACKING INSTALL LICENSE.GPL2 README TODO \
+ Changelog HACKING INSTALL LICENSE.* README.md TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/academic/ktikz/ktikz.info b/academic/ktikz/ktikz.info
index 888176171c..674d966100 100644
--- a/academic/ktikz/ktikz.info
+++ b/academic/ktikz/ktikz.info
@@ -1,8 +1,8 @@
PRGNAM="ktikz"
-VERSION="0.10"
+VERSION="0.13.2"
HOMEPAGE="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/"
-DOWNLOAD="http://www.hackenberger.at/ktikz/ktikz_0.10.tar.gz"
-MD5SUM="e8f0826cba2447250bcdcd389a71a2ac"
+DOWNLOAD="https://github.com/fhackenberger/ktikz/archive/0.13.2/ktikz-0.13.2.tar.gz"
+MD5SUM="26cb3537bc5fd501bd37d4ba80a06260"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""