IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.99.15.1 PROGNAME="totem $VERSION" DESC="\ totem (GNOME movie player) \n\ \n\ Totem is a movie player for the Gnome desktop based on xine. Some \n\ features include a playlist, full-screen mode, seek and volume \n\ controls, keyboard navigation, and a movie thumbnailer." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnome.org/pub/gnome/sources/totem/ PKGNAME=totem-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/totem-$VERSION.tar.bz2 cd totem-$VERSION/ chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux cat $CWD/makefile.diff | patch -p1 --backup --suffix=.orig make } install() { make install DESTDIR=/package-totem mkdir -p /package-totem/usr/doc/totem-$VERSION cp -a AUTHORS COPYING NEWS README TODO \ /package-totem/usr/doc/totem-$VERSION ( cd /package-totem/usr/man/man1 rm -f *.gz gzip -9 *.1 ) mkdir -p /package-totem/var/lib/scrollkeeper/ rm /package-totem/etc/gconf/gconf.xml.defaults/apps/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/desktop/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/desktop/gnome/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/desktop/gnome/thumbnailers/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/schemas/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/schemas/apps/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/schemas/desktop/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/schemas/desktop/gnome/%gconf.xml \ /package-totem/etc/gconf/gconf.xml.defaults/schemas/desktop/gnome/thumbnailers/%gconf.xml # Pat doesn't have this in his build rm -rf /package-totem/usr/lib/mozilla/ } attributes() { chown -R root.bin $PKG/package-totem/usr/bin find $PKG//package-totem/etc/gconf -name %gconf.xml | xargs chmod 644 } special() { cd $PKG mv package-totem/* ./ rmdir package-totem cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-totem/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new zcat $CWD/doinst.sh.gz >> doinst.sh }