#!/bin/sh # Set initial variables: CWD=`pwd` VERSION=1.7.6 BUILD=1 ARCH=noarch linkup() { ( cd $PKG/usr/bin ; rm -rf aclocal ) ( cd $PKG/usr/bin ; ln -sf aclocal-1.7 aclocal ) ( cd $PKG/usr/bin ; rm -rf automake ) ( cd $PKG/usr/bin ; ln -sf automake-1.7 automake ) } if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-automake if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xjvf $CWD/automake-$VERSION.tar.bz2 cd automake-$VERSION chown -R root.root . find . -perm 664 | xargs chmod 644 ./configure --prefix=/usr make make install prefix=$PKG/usr # Change hard links to symlinks: linkup; # Create local aclocal dir: mkdir -p $PKG/usr/share/aclocal touch $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 # Build the package: cd $PKG makepkg -l y -c n $TMP/automake-$VERSION-$ARCH-$BUILD.tgz