#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-automake VERSION=1.11.1 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux linkup() { ( cd $PKG/usr/bin ; rm -rf aclocal ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.11 aclocal ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.11 aclocal-1.10 ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.11 aclocal-1.9 ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.11 aclocal-1.8 ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.11 aclocal-1.7 ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.11 aclocal-1.4 ) ( cd $PKG/usr/share ; ln -sf aclocal-1.11 aclocal ) ( cd $PKG/usr/bin ; rm -rf automake ) ( cd $PKG/usr/bin ; ln -sf automake-1.11 automake ) ( cd $PKG/usr/bin ; ln -sf automake-1.11 automake-1.10 ) ( cd $PKG/usr/bin ; ln -sf automake-1.11 automake-1.9 ) ( cd $PKG/usr/bin ; ln -sf automake-1.11 automake-1.8 ) ( cd $PKG/usr/bin ; ln -sf automake-1.11 automake-1.7 ) ( cd $PKG/usr/bin ; ln -sf automake-1.11 automake-1.4 ) ( cd $PKG/usr/share ; ln -sf automake-1.11 automake ) } rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf automake-$VERSION tar xjf $CWD/automake-$VERSION.tar.bz2 cd automake-$VERSION chown -R root.root . find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --infodir=/usr/info \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin rm -rf $PKG/usr/info/dir gzip -9 $PKG/usr/info/* # Change hard links to symlinks: SHORTNAME=`echo $VERSION | cut -f1,2 -d .` ( cd $PKG/usr/bin rm -f aclocal ln -sf aclocal-$SHORTNAME aclocal rm -rf automake ln -sf automake-$SHORTNAME automake ) linkup; # Create local aclocal dir: #mkdir -p $PKG/usr/share/aclocal mkdir -p $PKG/usr/doc/automake-$VERSION cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO $PKG/usr/doc/automake-$VERSION mkdir -p $PKG/install zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/automake-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/automake.build.log