#!/bin/sh CWD=`pwd` TMP=${TMP:-/tmp} PKG=$TMP/package-libgnome VERSION=2.12.0.1 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 libgnome-$VERSION tar xjvf $CWD/libgnome-$VERSION.tar.bz2 cd libgnome-$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/libgnome-$VERSION cp -a \ AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README \ $PKG/usr/doc/libgnome-$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_gnome_accessibility_keyboard.schemas $PKG/etc/gconf/schemas/desktop_gnome_accessibility_keyboard.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_accessibility_startup.schemas $PKG/etc/gconf/schemas/desktop_gnome_accessibility_startup.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_applications_browser.schemas $PKG/etc/gconf/schemas/desktop_gnome_applications_browser.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_applications_help_viewer.schemas $PKG/etc/gconf/schemas/desktop_gnome_applications_help_viewer.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_applications_terminal.schemas $PKG/etc/gconf/schemas/desktop_gnome_applications_terminal.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_applications_window_manager.schemas $PKG/etc/gconf/schemas/desktop_gnome_applications_window_manager.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_background.schemas $PKG/etc/gconf/schemas/desktop_gnome_background.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_file_views.schemas $PKG/etc/gconf/schemas/desktop_gnome_file_views.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_interface.schemas $PKG/etc/gconf/schemas/desktop_gnome_interface.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_lockdown.schemas $PKG/etc/gconf/schemas/desktop_gnome_lockdown.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_peripherals_keyboard.schemas $PKG/etc/gconf/schemas/desktop_gnome_peripherals_keyboard.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_peripherals_mouse.schemas $PKG/etc/gconf/schemas/desktop_gnome_peripherals_mouse.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_sound.schemas $PKG/etc/gconf/schemas/desktop_gnome_sound.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_thumbnailers.schemas.new mv $PKG/etc/gconf/schemas/desktop_gnome_thumbnailers.schemas $PKG/etc/gconf/schemas/desktop_gnome_typing_break.schemas.new # mv $PKG/etc/sound/events/gnome-2.soundlist $PKG/etc/sound/events/gnome-2.soundlist.new mv $PKG/etc/sound/events/gtk-events-2.soundlist $PKG/etc/sound/events/gtk-events-2.soundlist.new # cd $PKG makepkg -l y -c n $TMP/libgnome-$VERSION-$ARCH-$BUILD.tgz # exit