aboutsummaryrefslogtreecommitdiff
path: root/ham/klog/klog.SlackBuild
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2015-05-16 09:15:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-16 09:18:15 +0700
commit736faf69b06a4a968a2480b2632bd770917688b4 (patch)
tree2073b2cde613183f2a0420df3b7fb2eef7ffeeff /ham/klog/klog.SlackBuild
parent6b7089d614569bd332405ca2db0c19a02b51fc17 (diff)
ham/klog: Updated for version 0.9.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/klog/klog.SlackBuild')
-rw-r--r--ham/klog/klog.SlackBuild36
1 files changed, 24 insertions, 12 deletions
diff --git a/ham/klog/klog.SlackBuild b/ham/klog/klog.SlackBuild
index 6e8377728252..85c489e11bc6 100644
--- a/ham/klog/klog.SlackBuild
+++ b/ham/klog/klog.SlackBuild
@@ -21,7 +21,7 @@
# that is unlikely, as I am rather tall.
PRGNAM=klog
-VERSION=${VERSION:-0.6.2}
+VERSION=${VERSION:-0.9.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,16 +67,18 @@ find -L . \
\( -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
-cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release ..
- make
- make install DESTDIR=$PKG
-cd ..
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+qmake PREFIX=/usr klog.pro
+
+make
+
+# Somewhere after 0.6.2 the developers
+# broke the install target. We'll do
+# it live!
+
+mkdir -p $PKG/usr/bin
+install -m 755 klog $PKG/usr/bin/
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
@@ -87,14 +89,24 @@ cat klog.1 > $PKG/usr/man/man1/klog.1
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/share/applications
+cat $CWD/klog.desktop > $PKG/usr/share/applications/klog.desktop
+
+mkdir -p $PKG/usr/share/icons/locolor/16x16/apps
+mkdir -p $PKG/usr/share/icons/locolor/32x32/apps
+cat $CWD/klog16x16.png > $PKG/usr/share/icons/locolor/16x16/apps/klog.png
+cat $CWD/klog32x32.png > $PKG/usr/share/icons/locolor/32x32/apps/klog.png
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING Changelog INSTALL.txt INSTALL-linux NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc -name "Makefile" -exec rm {} \;
find $PKG/usr/doc -type f -exec chmod 644 {} \;
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}