#!/bin/sh CWD=`pwd` TMP=${TMP:-/tmp} PKG=$TMP/package-gucharmap VERSION=1.4.1 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf gucharmap-$VERSION tar xjf $CWD/gucharmap-$VERSION.tar.bz2 cd gucharmap-$VERSION zcat $CWD/gucharmap.noscrollkeeper.diff.gz | patch -p1 --verbose zcat $CWD/gucharmap.desktop.diff.gz | patch -p1 --verbose chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --enable-static=no \ --disable-gnome \ $TARGET make make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/gucharmap-$VERSION cp -a COPYING COPYING.LIB NEWS README TODO $PKG/usr/doc/gucharmap-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/gucharmap-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/gucharmap.build.log