libraries/yaz: Initial import

This commit is contained in:
Michiel van Wessem 2010-05-11 14:56:26 +02:00 committed by Robby Workman
parent 980d781ba2
commit 02eb929d0a
4 changed files with 93 additions and 0 deletions

9
libraries/yaz/README Normal file
View File

@ -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.

11
libraries/yaz/slack-desc Normal file
View File

@ -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:

View File

@ -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

8
libraries/yaz/yaz.info Normal file
View File

@ -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"