rendered paste body#!/bin/sh#Allan Armstrong(hit3k) revision date 2007/7/13#initial variablesCWD=`pwd`if [ "$TMP" = "" ]; then TMP=/tmpfi#VersionVERSION=1.1.9PKG_VERSION=1.1.9 #Version which appears in the package name.ARCH=${ARCH:-i486} #Architecture to build onBUILD=${BUILD:-1_rlw}APP=InspIRCdPKG=$TMP/package-$APPif [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mtune=i686"elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686"elif [ "$ARCH" = "x86-64" ]; then SLKCFLAGS="-O2 -fPIC"fi#Extract sourcesrm -rf $PKGmkdir -p $TMP $PKGrm -rf $TMP/$APP-$VERSIONcd $TMP || exit 1#Extract the application into TMPtar -jxvf $CWD/$APP-$VERSION.tar.bz2 || exit 1#Change to the application source directorycd $APP-$VERSION || exit 1#Change necessary ownership and permissionschown -R root:root .chmod -R u+w;go+r-w,a-s .#configure optionsCXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --module-dir=/usr/lib/inspircd/modules \ --config-dir=/etc/inspircd \ --library-dir=/usr/lib/inspircd \ --binary-dir=/usr/bin/inspircdmake || exitmake install DESTDIR=$PKG || exit#Install documentationmkdir -p $PKG/usr/doc/$APP-$VERSIONcp -a BUGS Changes FAQ INSTALL LICENSE MANIFEST README TODO docs/ $PKG/usr/doc/$APP-$VERSIONfind $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \;cat $CWD/$APP.SlackBuild > $PKG/usr/doc/$APP-$VERSION/$APP.SlackBuildmkdir -p $PKG/installcat $CWD/slack-desc > $PKG/install/slack-desc#Add doinst.sh to package if it existsif [ -e $CWD/doinst.sh.gz ]; then zcat $CWD/doinst.sh.gz > $PKG/install/doinst.shfiif [ -d $PKG/usr/info ]; then gzip -9 $PKG/usr/info/*.info rm -f $PKG/usr/info/dirficd $PKG/sbin/makepkg -l y -c n $TMP/$APP-$PKG_VERSION-$ARCH-$BUILD.tgz