#!/bin/sh CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-gnomevfs if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built fi cd $TMP tar xzvf $CWD/gnome-vfs-1.0.1.tar.gz cd gnome-vfs-1.0.1 CFLAGS=-O2 ./configure --prefix=/opt/gnome \ --sysconfdir=/etc/opt/gnome \ --localstatedir=/var/lib \ sparc-slackware-linux make make DESTDIR=$PKG install mkdir -p $PKG/usr/doc/gnome-vfs-1.0.1 cp -a ABOUT-NLS AUTHORS COPYING COPYING.LIB ChangeLog HACKING INSTALL \ NEWS README TODO $PKG/usr/doc/gnome-vfs-1.0.1 chmod 644 $PKG/usr/doc/gnome-vfs-1.0.1/* chown root.root $PKG/usr/doc/gnome-vfs-1.0.1/* # Add gnome-vfs-extras: cd $TMP tar xyvf $CWD/gnome-vfs-extras-0.1.1.tar.bz2 cd gnome-vfs-extras-0.1.1 CFLAGS=-O2 ./configure --prefix=/opt/gnome \ --sysconfdir=/etc/opt/gnome \ --localstatedir=/var/lib \ sparc-slackware-linux make make DESTDIR=$PKG install mkdir -p $PKG/usr/doc/gnome-vfs-extras-0.1.1 cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README \ $PKG/usr/doc/gnome-vfs-extras-0.1.1 chmod 644 $PKG/usr/doc/gnome-vfs-extras-0.1.1/* chown root.root $PKG/usr/doc/gnome-vfs-extras-0.1.1/* gzip -9 $PKG/opt/gnome/man/man5/gnome-vfs-mime.5 # Build the package: cd $PKG echo "y n" | makepkg $TMP/gnomevfs.tgz # Warn of zero-length files: for file in `find . -type f -print` ; do if [ "`filesize $file`" = "0" ]; then echo "WARNING: zero length file $file" fi if [ "`filesize $file`" = "20" ]; then echo "WARNING: possible empty gzipped file $file" fi done # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/gnome-vfs-1.0.1 $TMP/gnome-vfs-extras-0.1.1 rm -rf $PKG fi