#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-libidl VERSION=0.8.6 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf libIDL-$VERSION tar xjf $CWD/libIDL-$VERSION.tar.bz2 cd libIDL-$VERSION chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ $TARGET make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/libidl-$VERSION cp -a AUTHORS BUGS COPYING HACKING MAINTAINERS NEWS README $PKG/usr/doc/libidl-$VERSION rm -rf $PKG/usr/info/dir ; gzip -9 $PKG/usr/info/* strip --strip-unneeded $PKG/usr/lib/libIDL-2.so* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/libidl-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/libidl.build.log