diff options
Diffstat (limited to 'development/Amaya/Amaya.SlackBuild')
-rw-r--r-- | development/Amaya/Amaya.SlackBuild | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/development/Amaya/Amaya.SlackBuild b/development/Amaya/Amaya.SlackBuild index a1931b7f45..5093195aa2 100644 --- a/development/Amaya/Amaya.SlackBuild +++ b/development/Amaya/Amaya.SlackBuild @@ -31,13 +31,12 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # -# Changed to version 10.0.1 by ks/30.08.2008 +# Changed to version 11.0 by ks/22.01.2009 set -e PRGNAM=Amaya -VERSION=10.0.1 -SRCVER=10.0 +VERSION=11.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -58,32 +57,35 @@ fi rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP || exit 1 -rm -rf $TMP/$PRGNAM$SRCVER +rm -rf $TMP/$PRGNAM$VERSION tar -xzvf $CWD/$(echo $PRGNAM |tr [A] [a])-sources-$VERSION.tgz chown -R root:root . chmod -R u+w,go+r-w,a-s . # Creating a subdirectory as specified in the README as we Have to run # configure from within a subdir -mkdir -p $PRGNAM$SRCVER/$PRGNAM/Slackware -cd $PRGNAM$SRCVER/$PRGNAM/Slackware +mkdir -p $PRGNAM$VERSION/$PRGNAM/Slackware +cd $PRGNAM$VERSION/$PRGNAM/Slackware CFLAGS="$SLKFLAGS" \ - ../configure \ - --prefix=$PKG/opt \ - --exec-prefix=$PKG/opt \ - --sysconfdir=$PKG/etc \ - --localstatedir=$PKG/var - +../configure \ + --prefix=$PKG/opt \ + --exec-prefix=$PKG/opt \ + --sysconfdir=$PKG/etc \ + --localstatedir=$PKG/var \ + --enable-system-raptor \ + --build=$ARCH-slackware-linux + make make install ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $TMP/$PRGNAM$SRCVER/$PRGNAM/README* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $TMP/$PRGNAM$VERSION/$PRGNAM/README* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Creating /usr/bin/amaya-wx symbolic link @@ -95,6 +97,9 @@ mkdir -p $PKG/usr/bin # Deleting useless files rm -rf $PKG/opt/bin +# Fix the amaya wrapper script +install -m 0755 $CWD/wrapper.amaya $PKG/opt/$PRGNAM/wx/bin/amaya + #desktop file mkdir -p $PKG/usr/share/{pixmaps,applications} cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop |