#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-xpaint VERSION=2.7.8.1 ARCH=alpha BUILD=1 SHARE=/usr/X11R6/share/xpaint rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf xpaint-$VERSION tar xjf $CWD/xpaint-$VERSION.tar.bz2 cd xpaint-$VERSION chown -R root.root . make distclean ./configure || exit make -i xaw SHAREDIR=$SHARE make -i install SHAREDIR=$SHARE DESTDIR=$PKG make -i install.man SHAREDIR=$SHARE DESTDIR=$PKG mkdir -p $PKG/usr/doc/xpaint-$VERSION cp -a README README.PNG README.old TODO xpaint.1x.html $PKG/usr/doc/xpaint-$VERSION chmod 644 $PKG/usr/doc/xpaint-$VERSION/* rm -rf $PKG/usr/X11R6/lib/X11/doc cd bitmaps mkdir -p $PKG/usr/X11R6/include/X11/bitmaps find . -name "*.xbm" -exec cp {} $PKG/usr/X11R6/include/X11/bitmaps \; mkdir -p $PKG/usr/X11R6/include/X11/pixmaps find . -name "*.xpm" -exec cp {} $PKG/usr/X11R6/include/X11/pixmaps \; gzip -9 $PKG/usr/X11R6/man/man1/* strip --strip-unneeded $PKG/usr/X11R6/bin/xpaint mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/xpaint-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/xpaint.build.log