#!/bin/sh CWD=`pwd` TMP=${TMP:-/tmp} PKG=$TMP/package-gnome-vfs VERSION=2.12.0 ARCH=${ARCH:-x86_64} BUILD=1 if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mcpu=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" fi if [ ! -d $TMP ]; then mkdir -p $TMP fi rm -rf $PKG mkdir -p $PKG cd $TMP rm -rf gnome-vfs-$VERSION tar xzvf $CWD/gnome-vfs-$VERSION.tar.gz cd gnome-vfs-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; LDFLAGS=-L/usr/lib64 \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure --prefix=/usr --sysconfdir=/etc --disable-debug --libdir=/usr/lib64 \ --program-prefix="" \ --program-suffix="" \ $ARCH-slackware-linux make make install DESTDIR=$PKG ( cd $PKG for dn in usr \ usr/local \ \ usr/X11R6 do for dn2 in bin sbin do for file in `find $dn/$dn2 -type f 2> /dev/null` do chown root.bin $PKG/$file /$file 2> /dev/null done done done ) ( cd $PKG for dn in usr \ usr/local \ usr/X11R6 do for dn2 in man share/man info share/info do for file in `find $dn/$dn2 -type f 2> /dev/null` do gzip -9f $PKG/$file /$file 2> /dev/null done done done ) ( 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/gnome-vfs-$VERSION cp -a \ AUTHORS COPYING COPYING.LIB ChangeLog HACKING INSTALL NEWS README TODO \ $PKG/usr/doc/gnome-vfs-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc if [ -f $CWD/slack-required ]; then cat $CWD/slack-required > $PKG/install/slack-required fi cat $CWD/doinst.sh > $PKG/install/doinst.sh mv $PKG/etc/gconf/schemas/desktop_default_applications.schemas $PKG/etc/gconf/schemas/desktop_default_applications.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_url_handlers.schemas $PKG/etc/gconf/schemas/desktop_gnome_url_handlers.schemas.new mv $PKG/etc/gconf/schemas/system_dns_sd.schemas $PKG/etc/gconf/schemas/system_dns_sd.schemas.new mv $PKG/etc/gconf/schemas/system_http_proxy.schemas $PKG/etc/gconf/schemas/system_http_proxy.schemas.new mv $PKG/etc/gconf/schemas/system_smb.schemas $PKG/etc/gconf/schemas/system_smb.schemas.new mv $PKG/etc/gconf/schemas/system_storage.schemas $PKG/etc/gconf/schemas/system_storage.schemas.new mv $PKG/etc/gnome-vfs-2.0/modules/default-modules.conf $PKG/etc/gnome-vfs-2.0/modules/default-modules.conf.new mv $PKG/etc/gnome-vfs-2.0/modules/ssl-modules.conf $PKG/etc/gnome-vfs-2.0/modules/ssl-modules.conf.new cd $PKG makepkg -l y -c n $TMP/gnome-vfs-$VERSION-$ARCH-$BUILD.tgz # exit