diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2011-02-20 12:35:46 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-02-20 12:35:46 -0300 |
commit | 0f8417c6a499232a7dad1e54d2bf9597ac722bf5 (patch) | |
tree | b0d178de5d2023eb0002482e5be17cf652c876b3 /graphics/yagf/yagf.SlackBuild | |
parent | be541309b99027af253c1e9b7197360e7746fd34 (diff) |
graphics/yagf: Updated for version 0.8.4.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'graphics/yagf/yagf.SlackBuild')
-rw-r--r-- | graphics/yagf/yagf.SlackBuild | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/graphics/yagf/yagf.SlackBuild b/graphics/yagf/yagf.SlackBuild index 3fbc5f358aae..efe8cc088a4c 100644 --- a/graphics/yagf/yagf.SlackBuild +++ b/graphics/yagf/yagf.SlackBuild @@ -5,16 +5,14 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=yagf -VERSION=${VERSION:-0.8.1} +VERSION=${VERSION:-0.8.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -43,9 +41,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$VERSION-Source +tar xvf $CWD/$PRGNAM-$VERSION-Source.tar.gz +cd $PRGNAM-$VERSION-Source chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -53,18 +51,17 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Remove .svn directories and fix desktop menu item. -find . -type d -name ".svn" | xargs rm -rf {} \; +# Fix desktop menu item. sed -i 's|true|false|' YAGF.desktop # Make translations. Cmake doesn't handle them properly. lrelease src/*.ts mv src/*.qm . -mkdir build && cd build +mkdir -p build +cd build cmake \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ - -DCPACK_INSTALL_PREFIX:PATH=/usr \ -DLIB_PATH_SUFFIX="$LIBDIRSUFFIX" \ -DCPACK_BINARY_TGZ=ON \ -DCPACK_BINARY_TZ=ON \ @@ -76,12 +73,6 @@ mkdir build && cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release .. - # Remove -O3 flags. - REM_O3=$(find . -type f | xargs grep '\-O3' | cut -d ':' -f1 | uniq | sort) - for i in $REM_O3; do - sed -i 's|-O3 ||g' $i - done - make VERBOSE=1 make install DESTDIR=$PKG cd .. @@ -91,7 +82,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING DESCRIPTION README \ + AUTHORS ChangeLog COPYING DESCRIPTION README \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |