IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.11.8 PROGNAME="pilot-link $VERSION" DESC="\ pilot-link \n\ \n\ This is a library for communicating with Palm Computing, Inc. Palm \n\ Devices as well as the Handspring Visor, TRGPro, and other devices \n\ which conform to this standard (PalmOS licensed devices). \n\ \n\ pilot-link is used by gnome-pilot and Evolution." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/pilot-link PKGNAME=pilot-link-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/pilot-link-$VERSION.tar.bz2 cd pilot-link-$VERSION/ chown -R root.root . CFLAGS=-O2 \ ./configure --prefix=/usr \ --localstatedir=/var/lib \ --program-prefix="" --program-suffix="" \ s390-slackware-linux make } install() { # Yet another ugly libtool workaround ( cd libpisock/.libs targets=`/bin/ls *.so*` cp -a $targets /usr/local/lib/ ) make install DESTDIR=/package-pilot-link/ ( cd libpisock/.libs targets=`/bin/ls *.so*` cd /usr/local/lib/ rm $targets ) mkdir -p /package-pilot-link/usr/doc/pilot-link-$VERSION cp -a AUTHORS COPYING COPYING.LIB NEWS README \ /package-pilot-link/usr/doc/pilot-link-$VERSION ( cd /package-pilot-link/usr/man/ for dir in 1 7;do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) } attributes() { chown -R root.bin $PKG/package-pilot-link/usr/bin/ } special() { cd $PKG mv package-pilot-link/* ./ rmdir package-pilot-link cd $CTL cat $CWD/slack-desc > slack-desc cat << EOF >> doinst.sh if [ ! -r dev/pilot ]; then # pick a default ( cd dev ; ln -sf ttyS0 pilot ) fi EOF sed -e 's%package-pilot-link/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }