diff options
author | Willy Sudiarto Raharjo <willysr@gmail.com> | 2012-09-15 11:20:23 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-09-16 19:45:35 -0400 |
commit | eb678e3cb86cced2ffaa9df3ead9700f132c3af6 (patch) | |
tree | 805675d09cb75a0fdb644b2df7c6d2114aa50aac /development/valkyrie/valkyrie.SlackBuild | |
parent | 445456c0f4ff43d133a526036ea69829664a8c48 (diff) | |
download | slackbuilds-eb678e3cb86cced2ffaa9df3ead9700f132c3af6.tar.gz |
development/valkyrie: Included a couple of patches to fix build
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/valkyrie/valkyrie.SlackBuild')
-rw-r--r-- | development/valkyrie/valkyrie.SlackBuild | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/development/valkyrie/valkyrie.SlackBuild b/development/valkyrie/valkyrie.SlackBuild index 0868e490de..918018c001 100644 --- a/development/valkyrie/valkyrie.SlackBuild +++ b/development/valkyrie/valkyrie.SlackBuild @@ -23,7 +23,7 @@ PRGNAM=valkyrie VERSION=2.0.0 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -50,6 +50,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -61,17 +64,34 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . -chmod -R u+w,go+r-w,a-s . +find . \ +\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ +-exec chmod 755 {} \; -o \ +\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ +-exec chmod 644 {} \; + +patch -p1 < $CWD/vk_configh.patch +patch -p1 < $CWD/vk_configpri.patch CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ qmake PREFIX=/usr + 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 +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION + +mkdir -p $PKG/usr/share/applications/ +install -D -m644 $CWD/valkyrie.desktop $PKG/usr/share/applications/ + +mkdir -p $PKG/usr/share/pixmaps/ +install -D -m644 icons/valkyrie.xpm $PKG/usr/share/pixmaps/ + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |