diff options
Diffstat (limited to 'games/meandmyshadow/meandmyshadow.SlackBuild')
-rw-r--r-- | games/meandmyshadow/meandmyshadow.SlackBuild | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/games/meandmyshadow/meandmyshadow.SlackBuild b/games/meandmyshadow/meandmyshadow.SlackBuild index 63bb8b3bcf..bde742c7a4 100644 --- a/games/meandmyshadow/meandmyshadow.SlackBuild +++ b/games/meandmyshadow/meandmyshadow.SlackBuild @@ -5,8 +5,8 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=meandmyshadow -VERSION=${VERSION:-0.3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,19 +51,14 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix .desktop file. -sed -i -e '/^Version/d' -e 's|;Game;|;|' meandmyshadow.desktop - -# SLKCFLAGS are respected. -sed -i "s|-Wall -g|& $SLKCFLAGS|" CMakeLists.txt - -# From upstream. Fix for building with gcc 4.7.x. -patch -p1 < $CWD/gcc-4.7.patch +# Fix DOS file. +sed -i 's/\r//' docs/ThemeDescription.txt mkdir -p build cd build cmake -G "Unix Makefiles" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DBINDIR=/usr/games \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release .. @@ -76,7 +71,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a License ThemeDescription.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING README docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild sed -i 's/\r//' $PKG/usr/doc/$PRGNAM-$VERSION/* |