diff options
Diffstat (limited to 'libraries/yaz')
-rw-r--r-- | libraries/yaz/README | 9 | ||||
-rw-r--r-- | libraries/yaz/slack-desc | 11 | ||||
-rw-r--r-- | libraries/yaz/yaz.SlackBuild | 65 | ||||
-rw-r--r-- | libraries/yaz/yaz.info | 8 |
4 files changed, 93 insertions, 0 deletions
diff --git a/libraries/yaz/README b/libraries/yaz/README new file mode 100644 index 0000000000000..ac751fedd981f --- /dev/null +++ b/libraries/yaz/README @@ -0,0 +1,9 @@ +YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU +clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version +1.1 are supported in both the client and server roles. + +The current version of YAZ includes support for the industry standard +ZOOM API for Z39.50. This API vastly simplifies the process of writing +new clients using YAZ, and it reduces your dependency on any single +toolkit. + diff --git a/libraries/yaz/slack-desc b/libraries/yaz/slack-desc new file mode 100644 index 0000000000000..c08bf4baf498f --- /dev/null +++ b/libraries/yaz/slack-desc @@ -0,0 +1,11 @@ +yaz: YAZ (a programmers toolkit) +yaz: +yaz: YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU +yaz: clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version +yaz: 1.1 are supported in both the client and server roles. +yaz: +yaz: The current version of YAZ includes support for the industry standard +yaz: ZOOM API for Z39.50. This API vastly simplifies the process of writing +yaz: new clients using YAZ, and it reduces your dependency on any single +yaz: toolkit. +yaz: diff --git a/libraries/yaz/yaz.SlackBuild b/libraries/yaz/yaz.SlackBuild new file mode 100644 index 0000000000000..ae0e354a3641a --- /dev/null +++ b/libraries/yaz/yaz.SlackBuild @@ -0,0 +1,65 @@ +#!/bin/sh + +# SlackBuild script for yaz +# Written by Michiel van Wessem (BP{k}) <michiel.van.wessem@gmail.com +# Modified by the SlackBuilds.org project + +set -e + +PRGNAM=yaz +VERSION=2.1.54 +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +ARCH=${ARCH:-i486} +OUTPUT=${OUTPUT:-/tmp} + +DOCFILES="LICENSE NEWS README TODO ChangeLog" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +rm -rf $TMP/$PRGNAM-$VERSION +cd $TMP +tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure --prefix=/usr \ + --localstatedir=/var \ + --sysconfdir=/etc \ + --mandir=/usr/man \ + --program-prefix="" \ + --program-suffix="" \ + --disable-debug + +make +make install-strip DESTDIR=$PKG + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/yaz $PKG/usr/doc/$PRGNAM-$VERSION/html +rm -rf $PKG/usr/share/doc +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; + +mkdir $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/libraries/yaz/yaz.info b/libraries/yaz/yaz.info new file mode 100644 index 0000000000000..fa257130eb07c --- /dev/null +++ b/libraries/yaz/yaz.info @@ -0,0 +1,8 @@ +PRGNAM="yaz" +VERSION="2.1.54" +HOMEPAGE="http://www.indexdata.dk/yaz/" +DOWNLOAD="http://ftp.indexdata.dk/pub/yaz/yaz-2.1.54.tar.gz" +MD5SUM="13e369fd6bf24b99e8d6b817e6c1519d" +MAINTAINER="Michiel van Wessem" +EMAIL="michiel@slackbuilds.org" +APPROVED="rworkman" |