diff options
Diffstat (limited to 'source/l/rasqal')
-rwxr-xr-x | source/l/rasqal/rasqal.SlackBuild | 40 | ||||
-rw-r--r-- | source/l/rasqal/rasqal.info | 5 | ||||
-rw-r--r-- | source/l/rasqal/slack-desc | 2 |
3 files changed, 27 insertions, 20 deletions
diff --git a/source/l/rasqal/rasqal.SlackBuild b/source/l/rasqal/rasqal.SlackBuild index 730d952d..9ef4cbf3 100755 --- a/source/l/rasqal/rasqal.SlackBuild +++ b/source/l/rasqal/rasqal.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Copyright 2007 Heinz Wiesinger <hmwiesinger@gmx.at> -# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,18 +22,27 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Modified by Robby Workman <rworkman@slackware.com> +# Modified by Eric Hameleers <alien@slackware.com> # No added terms or copyright claims - -VERSION=0.9.16 -ARCH=${ARCH:-x86_64} +PKGNAM=rasqal +VERSION=${VERSION:-0.9.19} BUILD=${BUILD:-1} - NUMJOBS=${NUMJOBS:--j6} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp} -PKG=$TMP/package-rasqal +PKG=$TMP/package-$PKGNAM if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -44,14 +53,17 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi rm -rf $PKG mkdir -p $TMP $PKG cd $TMP -rm -rf rasqal-$VERSION -tar xvf $CWD/rasqal-$VERSION.tar.bz2 || exit 1 -cd rasqal-$VERSION || exit 1 +rm -rf $PKGNAM-$VERSION +tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1 +cd $PKGNAM-$VERSION || exit 1 chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -81,17 +93,17 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" \ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done ) -mkdir -p $PKG/usr/doc/rasqal-$VERSION +mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ AUTHORS COPYING* INSTALL INSTALL.html LICENSE* NEWS* NOTICE README* \ - $PKG/usr/doc/rasqal-$VERSION -( cd $PKG/usr/doc/rasqal-$VERSION - ln -s /usr/share/gtk-doc/html/rasqal html + $PKG/usr/doc/$PKGNAM-$VERSION +( cd $PKG/usr/doc/$PKGNAM-$VERSION + ln -s /usr/share/gtk-doc/html/$PKGNAM html ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $TMP/rasqal-$VERSION-$ARCH-$BUILD.txz +/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD.txz diff --git a/source/l/rasqal/rasqal.info b/source/l/rasqal/rasqal.info deleted file mode 100644 index 9605aee7..00000000 --- a/source/l/rasqal/rasqal.info +++ /dev/null @@ -1,5 +0,0 @@ -PRGNAM="rasqal" -VERSION="0.9.15" -HOMEPAGE="http://librdf.org/" -DOWNLOAD="http://download.librdf.org/source/rasqal-0.9.15.tar.gz" -MD5SUM="22aa82cd8953e2a870b6f183268a957f" diff --git a/source/l/rasqal/slack-desc b/source/l/rasqal/slack-desc index b029384b..46e8b19c 100644 --- a/source/l/rasqal/slack-desc +++ b/source/l/rasqal/slack-desc @@ -7,6 +7,6 @@ rasqal: constructing the queries, executing them and returning result formats. rasqal: It currently handles the RDF Data Query Language (RDQL) and SPARQL rasqal: Query language. rasqal: -rasqal: Homepage: http://librdf.org/ rasqal: +rasqal: Homepage: http://librdf.org/ rasqal: |