mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
ham/klog: Updated for version 0.9.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6b7089d614
commit
736faf69b0
6 changed files with 40 additions and 15 deletions
3
ham/klog/doinst.sh
Normal file
3
ham/klog/doinst.sh
Normal file
|
@ -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
|
|
@ -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}
|
||||
|
|
10
ham/klog/klog.desktop
Normal file
10
ham/klog/klog.desktop
Normal file
|
@ -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
|
|
@ -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"
|
||||
|
|
BIN
ham/klog/klog16x16.png
Normal file
BIN
ham/klog/klog16x16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 639 B |
BIN
ham/klog/klog32x32.png
Normal file
BIN
ham/klog/klog32x32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in a new issue