summaryrefslogtreecommitdiff
path: root/network/qwit/qwit.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/qwit/qwit.SlackBuild')
-rw-r--r--network/qwit/qwit.SlackBuild20
1 files changed, 13 insertions, 7 deletions
diff --git a/network/qwit/qwit.SlackBuild b/network/qwit/qwit.SlackBuild
index dadc4c3c67..95b559936b 100644
--- a/network/qwit/qwit.SlackBuild
+++ b/network/qwit/qwit.SlackBuild
@@ -5,7 +5,7 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=qwit
-VERSION=${VERSION:-0.8}
+VERSION=${VERSION:-0.10}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,8 +38,12 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-qmake-qt4 $PRGNAM.pro
-make
+echo "StartupNotify=false" >> $PRGNAM.desktop
+
+qmake -unix PREFIX=/usr -o Makefile $PRGNAM.pro
+make \
+ CFLAGS="-pipe $SLKCFLAGS -g -Wall -W -D_REENTRANT \$(DEFINES)" \
+ CXXFLAGS="-pipe $SLKCFLAGS -g -Wall -W -D_REENTRANT \$(DEFINES)"
make install INSTALL_ROOT=$PKG
( cd $PKG
@@ -49,12 +53,14 @@ make install INSTALL_ROOT=$PKG
xargs strip --strip-unneeded 2> /dev/null
)
-mkdir -p $PKG/usr/share/{applications,pixmaps}
-install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/
+mkdir -p $PKG/usr/share/pixmaps
install -m 0644 images/$PRGNAM.png $PKG/usr/share/pixmaps/
+rm -rf $PKG/usr/share/icons
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING INSTALL README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -62,4 +68,4 @@ 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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}