#!/bin/sh # Expat Library # BuildScript for Plamo Linux 3.1 # by Jun Kuwamura on 2003-08-24 SRC_URI=http://umn.dl.sourceforge.net/sourceforge/expat/expat-1.95.6.tar.gz SRC_FILE=${SRC_URI##*/} PAC_NAME="${SRC_FILE%%.tar.gz}" SRC_DIR=/site/pub/archive/www/ REL=1 SYS_NAME="i386-${REL}" PAC_DIR=/opt/Package/Develop DOC_DIR=/usr/doc/$PAC_NAME umask 022 CWD=`pwd` WORK=$CWD/work rm -rf $WORK/* mkdir -p $WORK export LANG=C export LC_ALL=C export CFLAGS="-O2" export PATH=$PATH:/usr/X11R6/bin if [ ! -f $SRC_DIR/$SRC_FILE ]; then echo $SRC_DIR/$SRC_FILE ( cd $SRC_DIR; wget $SRC_URI ) fi tar xvfz $SRC_DIR/$SRC_FILE cd $PAC_NAME ./configure --prefix=/usr make echo "Expat, Release 1.95.6 This is Expat, a C library for parsing XML, written by James Clark. Expat is a stream-oriented XML parser. This means that you register handlers with the parser before starting the parse. These handlers are called when the parser discovers the associated structures in the document being parsed. A start tag is an example of the kind of structures for which you may register handlers. 9 http://www.libexpat.org/ " | checkinstall mkdir package cd package tar xvfz ../${PAC_NAME}-${SYS_NAME}.tgz rm -f install/description sed -e '1,10d' install/doinst.sh > doinst.sh.new mv doinst.sh.new install/doinst.sh installpkg -m ../${PAC_NAME}-${SYS_NAME} cd .. mv ${PAC_NAME}-${SYS_NAME}.tgz ../Develop cd .. exit #### wget -N http://unc.dl.sourceforge.net/sourceforge/check/check-0.8.3.tar.gz tar xvfz check-0.8.3.tar.gz cd check-0.8.3 ./configure --prefix=/usr make checkinstall mkdir package cd package tar xvfz ../check-0.8.3-i386-1.tgz rm -f install/description installpkg -m ../check-0.8.3-i386-1 cd .. mv check-0.8.3-i386-1.tgz .. cd ..