summaryrefslogtreecommitdiff
path: root/games/kobodeluxe/kobodeluxe.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/kobodeluxe/kobodeluxe.SlackBuild')
-rw-r--r--games/kobodeluxe/kobodeluxe.SlackBuild26
1 files changed, 11 insertions, 15 deletions
diff --git a/games/kobodeluxe/kobodeluxe.SlackBuild b/games/kobodeluxe/kobodeluxe.SlackBuild
index 1bba28beed..8a64126fa7 100644
--- a/games/kobodeluxe/kobodeluxe.SlackBuild
+++ b/games/kobodeluxe/kobodeluxe.SlackBuild
@@ -3,14 +3,13 @@
# Slackware build script for Kobo Deluxe
# Written by Erik Hanson erik@slackbuilds.org
-# Modified by the SlackBuilds.org project
-
PRGNAM=KoboDeluxe
PKGNAM=kobodeluxe
-VERSION=0.4pre10
+VERSION=0.5.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -26,39 +25,36 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
+ --mandir=/usr/man \
+ --sharedstatedir=/var/games \
+ --enable-static=no \
|| exit 1
make || exit 1
make install DESTDIR=$PKG || exit 1
-# Move the scoredir to /var instead of /usr and create a symlink to where
-# the binary expects it to be. The /var partition will always be writable,
-# but we can't be so sure about the /usr partition
-mkdir -p $PKG/var/games
-mv $PKG/usr/games/kobo-deluxe $PKG/var/games
-( cd $PKG/usr/games ; ln -s ../../var/games/kobo-deluxe kobo-deluxe )
-
find $PKG | xargs file | egrep "ELF.*executable" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find $PKG/usr/man -type f -exec gzip -9 {} \;
+mkdir -p $PKG/usr/share/{applications,pixmaps}
+cat $CWD/$PKGNAM.png > $PKG/usr/share/pixmaps/$PKGNAM.png
+cat $CWD/$PKGNAM.desktop > $PKG/usr/share/applications/$PKGNAM.desktop
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING COPYING.LIB ChangeLog README* TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PKGNAM.SlackBuild
-mkdir -p $PKG/usr/share/{applications,pixmaps}
-cp -a $CWD/$PKGNAM.png $PKG/usr/share/pixmaps
-cp -a $CWD/$PKGNAM.desktop $PKG/usr/share/applications
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh