summaryrefslogtreecommitdiff
path: root/development/valkyrie/valkyrie.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/valkyrie/valkyrie.SlackBuild')
-rw-r--r--development/valkyrie/valkyrie.SlackBuild24
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