aboutsummaryrefslogtreecommitdiff
path: root/ham
diff options
context:
space:
mode:
Diffstat (limited to 'ham')
-rw-r--r--ham/klog/doinst.sh3
-rw-r--r--ham/klog/klog.SlackBuild36
-rw-r--r--ham/klog/klog.desktop10
-rw-r--r--ham/klog/klog.info6
-rw-r--r--ham/klog/klog16x16.pngbin0 -> 639 bytes
-rw-r--r--ham/klog/klog32x32.pngbin0 -> 1354 bytes
6 files changed, 40 insertions, 15 deletions
diff --git a/ham/klog/doinst.sh b/ham/klog/doinst.sh
new file mode 100644
index 000000000000..5013ef6d40f8
--- /dev/null
+++ b/ham/klog/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
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}
diff --git a/ham/klog/klog.desktop b/ham/klog/klog.desktop
new file mode 100644
index 000000000000..3f4cfd0c87f5
--- /dev/null
+++ b/ham/klog/klog.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=KLog
+Encoding=UTF-8
+Comment=KDE Ham Radio logging program
+Comment[es]=Programa de log para radioaficionados de KDE
+Exec=klog
+Terminal=false
+Type=Application
+Categories=HamRadio;Utility;
+Icon=/usr/share/icons/locolor/32x32/apps/klog.png
diff --git a/ham/klog/klog.info b/ham/klog/klog.info
index 652dd61997f5..90564cf1304f 100644
--- a/ham/klog/klog.info
+++ b/ham/klog/klog.info
@@ -1,8 +1,8 @@
PRGNAM="klog"
-VERSION="0.6.2"
+VERSION="0.9.1.1"
HOMEPAGE="http://jaime.robles.es/klog/"
-DOWNLOAD="http://jaime.robles.es/download/klog-0.6.2.tar.gz"
-MD5SUM="3433557d0da35fe3b79260917baf0298"
+DOWNLOAD="http://nongnu.askapache.com/klog/klog-0.9.1.1.tar.gz"
+MD5SUM="7ab84fe3aba8ce6792a602262adadc6a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="hamlib"
diff --git a/ham/klog/klog16x16.png b/ham/klog/klog16x16.png
new file mode 100644
index 000000000000..9ecd25947b21
--- /dev/null
+++ b/ham/klog/klog16x16.png
Binary files differ
diff --git a/ham/klog/klog32x32.png b/ham/klog/klog32x32.png
new file mode 100644
index 000000000000..e2ed6e8fd137
--- /dev/null
+++ b/ham/klog/klog32x32.png
Binary files differ