#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-slang VERSION=1.4.9 ARCH=alpha BUILD=3 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf slang-$VERSION tar xjf $CWD/slang-$VERSION.tar.bz2 cd slang-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ --includedir=/usr/include/slang \ $TARGET make || exit make install DESTDIR=$PKG make elf || exit make install-elf DESTDIR=$PKG rm -rf $PKG/usr/doc/slang mkdir -p $PKG/usr/doc/slang-$VERSION cp -a COPY* README UPGRADE.txt changes.txt doc/text $PKG/usr/doc/slang-$VERSION chmod 755 $PKG/usr/lib/libslang.so.$VERSION strip --strip-unneeded $PKG/usr/lib/libslang.so.$VERSION 2> /dev/null ( cd $PKG/usr/lib ; ldconfig . ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/slang-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/slang.build.log