#!/bin/bash # expat.SlackBuild # by Stuart Winter for the Slackware porting Project. # Heavily based on the original Slackware build script. # 14-Jun-2004 # Record toolchain & other info for the build log: slackbuildinfo # Paths to skeleton port's source & real Slackware source tree: export CWD=$SLACKSOURCE/$PKGNAM export PORTCWD=$PWD # Temporary build locations: export TMPBUILD=$TMP/build-$PKGNAM export PKG=$TMP/package-$PKGNAM mkpkgdirs # Delete & re-create temporary directories then cd into $TMPBUILD # Extract source: tar xvvf $CWD/$PKGNAM-$VERSION.tar.xz cd $PKGNAM-$VERSION || exit 1 slackhousekeeping zcat $CWD/178d26f50af21ec23d6e43814b9b602590b5865c.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/5f100ffa78b74da8020b71d1582a8979193c1359.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/5c168279c5ad4668e5e48fe13374fe7a7de4b573.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/3f0a0cb644438d4d8e3294cd0b1245d0edb0c6c6.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/9b4ce651b26557f16103c3a366c91934ecd439ab.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/a2fe525e660badd64b6c557c2b1ec26ddc07f6e4.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/eb0362808b4f9f1e2345a0cf203b8cc196d776d9.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/efcb347440ade24b9f1054671e6bd05e60b4cafd.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/9288cd5474bf6d3d0c037c247f9581d5e4df5097.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/f178826bb1e9c8ee23202f1be55ad4ac7b649e84.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/a976e32abd257728a51dc55cf3d4ebee5b853459.patch.gz | patch -p2 --verbose || exit 1 zcat $CWD/56967f83d68d5fc750f9e66a9a76756c94c7c173.patch.gz | patch -p2 --verbose || exit 1 # Configure: CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --mandir=/usr/man \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --docdir=/usr/doc/expat-$VERSION \ --disable-static \ --build=$ARCH-slackware-linux-gnueabi || failconfig # Build: make $NUMJOBS || make || failmake # Install into package framework: make install DESTDIR=$PKG || failinstall # Install docs: mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -favv \ COPYING* README* doc/reference.html \ $PKG/usr/doc/$PKGNAM-$VERSION # Apply generic Slackware packaging policies: cd $PKG slackstripall # strip all .a archives and all ELFs slackgzpages -i # compress man & info pages and delete usr/info/dir slackslack # chown -R root:root, chmod -R og-w, slackchown, slack644docs slackdesc # install slack-desc and doinst.sh slackmp # run makepkg -l y -c n # Perform any final checks on the package: cd $PKG slackhlinks # search for any hard links