diff options
author | Dan-Simon Myrland <dansimon@radiotube.org> | 2014-03-31 23:43:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-04-07 14:43:45 +0700 |
commit | a05ffd96b69fe821a05824cca8ef8d0dec49d901 (patch) | |
tree | e38296ebe35560bba681ac233adab25a16a40db2 /academic/evopedia_qt/evopedia_qt.SlackBuild | |
parent | 2bdc039a592427d995650e68e08b64f8f6d68d3a (diff) | |
download | slackbuilds-a05ffd96b69fe821a05824cca8ef8d0dec49d901.tar.gz |
academic/evopedia_qt: Added (Offline Wikipedia viewer).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/evopedia_qt/evopedia_qt.SlackBuild')
-rw-r--r-- | academic/evopedia_qt/evopedia_qt.SlackBuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/academic/evopedia_qt/evopedia_qt.SlackBuild b/academic/evopedia_qt/evopedia_qt.SlackBuild new file mode 100644 index 0000000000..783878ba4a --- /dev/null +++ b/academic/evopedia_qt/evopedia_qt.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh +# +# Slackware build script for evopedia +# +# Written by Dan-Simon Myrland <dansimon@radiotube.org> + +PRGNAM=evopedia_qt +VERSION=${VERSION:-0.4.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +unzip $CWD/v${VERSION}.zip || unzip $CWD/$PRGNAM-$VERSION.zip +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +# uncomment NO_GUI option for a gui less installation +qmake PREFIX=$PKG/usr #DEFINES+=NO_GUI +make +make install + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md debian/changelog debian/copyright $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |