#!/bin/sh CWD=`pwd` PKG=/tmp/package-goffice VERSION=0.6.4 ARCH=i486 BUILD=52.1 SLKCFLAGS="-O2 -march=i486 -mtune=i686" rm -rf $PKG mkdir -p $PKG cd /tmp rm -rf goffice-$VERSION tar xjvf $CWD/goffice-$VERSION.tar.bz2 cd goffice-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; #if [ "$VERSION" == "0.6.2" ]; then # cat $CWD/goffice-0.6.1-die-gtk-doc.patch | patch -p1 --verbose #else # echo "goffice-0.6.1-die-gtk-doc.patch required, you will find it in /usr/src/goffice-0.6.1" # exit #fi CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --without-gnome \ --sysconfdir=/etc \ --disable-gtk-doc \ --mandir=/usr/man 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 find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/src/goffice-$VERSION cp $CWD/build-goffice.sh $PKG/usr/src/goffice-$VERSION/ mv $PKG/usr/share/doc $PKG/usr mkdir -p $PKG/install # # make a slack-desc file # cat <<"EOF" > $PKG/install/slack-desc # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' on # the right side marks the last column you can put a character in. You must make # exactly 11 lines for the formatting to be correct. It's also customary to # leave one space after the ':'. |-----handy-ruler------------------------------------------------------| goffice: goffice (gnome-office-library) goffice: goffice: goffice: A library of document-centric objects and utilities used by goffice: Gnome Office goffice: goffice: goffice: goffice: goffice: goffice: goffice: goffice: EOF cd $PKG makepkg -l y -c n ../goffice-$VERSION-$ARCH-$BUILD.tgz cd .. md5sum goffice-$VERSION-$ARCH-$BUILD.tgz > goffice-$VERSION-$ARCH-$BUILD.md5