#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-indent VERSION=2.2.10 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf indent-$VERSION tar xf $CWD/indent-$VERSION.tar.gz cd indent-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$TARGET make || exit 1 make DESTDIR=$PKG install rm -rf $PKG/usr/info/dir gzip -9 $PKG/usr/info/* gzip -9 $PKG/usr/man/man1/* ( cd po for locale in *.gmo ; do mkdir -p $PKG/usr/share/locale/`basename $locale .gmo`/LC_MESSAGES cat $locale > $PKG/usr/share/locale/`basename $locale .gmo`/LC_MESSAGES/indent.mo done ) mv $PKG/usr/doc/indent $PKG/usr/doc/indent-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/indent-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/indent.build.log