#!/bin/sh # written by fae VERSION=1.0.7 URL=http://www.bennewitz.com/bluefish/stable/source/bluefish-$VERSION.tar.bz2 ARCH=i686 BUILD=1X TMP=${TMP:-/tmp} CWD=`pwd` PKG=$TMP/package-bluefish if [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi # This is optional - it will halt script execution if anything goes wrong. set -e if [ ! -e $CWD/bluefish-$VERSION.tar.bz2 ]; then echo "Download sources for bluefish..." wget -c $URL -P $CWD fi rm -rf $PKG mkdir -p $PKG cd $TMP tar -xjvf $CWD/bluefish-$VERSION.tar.bz2 cd bluefish-$VERSION chown -R root.root * find . -perm 777 -exec chmod 755 {} \; find . -perm 666 -exec chmod 644 {} \; find . -perm 555 -exec chmod 755 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 775 -exec chmod 755 {} \; echo "Building bluefish package..." CFLAGS=$SLKCFLAGS ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/man \ --enable-gcc3-optimization=i686 \ --disable-update-databases --without-gnome2_4-mime --without-gnome2_4-appreg make make install DESTDIR=$PKG cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/install cat << DESC >> $PKG/install/slack-desc |-----handy-ruler------------------------------------------------------| bluefish: Bluefish (web editor) bluefish: bluefish: Bluefish is a powerful editor for experienced web designers and bluefish: programmers. Bluefish supports many programming and markup bluefish: languages, but it focuses on editing dynamic and interactive bluefish: websites. bluefish: bluefish: bluefish: bluefish: Package prepared by fae ( fae@onet.eu ) bluefish: DESC cat << REQ >> $PKG/install/slack-required atk cairo expat glib2 gtk+2 libpng pango REQ cd $PKG makepkg -l y -c n $CWD/bluefish-$VERSION-$ARCH-$BUILD.tgz rm -rf $TMP/bluefish-$VERSION