diff options
Diffstat (limited to 'ham/linpsk/linpsk.SlackBuild')
-rw-r--r-- | ham/linpsk/linpsk.SlackBuild | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/ham/linpsk/linpsk.SlackBuild b/ham/linpsk/linpsk.SlackBuild index 8b76e32d02..cf82250b9e 100644 --- a/ham/linpsk/linpsk.SlackBuild +++ b/ham/linpsk/linpsk.SlackBuild @@ -23,8 +23,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=linpsk -VERSION=${VERSION:-1.2} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.3.5} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -68,7 +68,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tgz +tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -77,17 +77,15 @@ 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 {} \; -qmake -o Makefile linpsk.pro -make - -mkdir -p $PKG/usr/bin -install -m 755 bin/linpsk $PKG/usr/bin/ +# removes a few "comparison of pointer with integer zero" errors +# and a missing Qt header +patch -p1 <$CWD/pointer_null.patch -mkdir -p $PKG/usr/share/applications -install -m 644 $CWD/linpsk.desktop $PKG/usr/share/applications +# Qt5's qmake errors out +qmake-qt4 -o - linpsk.pro | sed "s,usr/local,usr,g" > Makefile -mkdir -p $PKG/usr/share/pixmaps -install -m 644 images/linpsk.png $PKG/usr/share/pixmaps +make +make install INSTALL_ROOT=$PKG 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 |