#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=cheese pkgver=2.24.3 pkgrel=1gv arch=x86_64 source=("http://ftp.acc.umu.se/pub/GNOME/sources/cheese/2.24/cheese-2.24.3.tar.bz2" "cheese-2.24.3-nohelp.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") url=http://projects.gnome.org/cheese/ options=('noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x usr/bin/scrollkeeper-update ]; then usr/bin/scrollkeeper-update > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "cheese - take pictures and videos from a webcam" "Cheese is a Photobooth-inspired GNOME application for taking pictures" "and videos from a webcam. It also includes fancy graphical effects" "based on the gstreamer-backend." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/cheese-2.24.3-nohelp.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-schemas-install --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-scrollkeeper --disable-static make || return 1 make install DESTDIR=$startdir/pkg rm -rf $startdir/pkg/usr/share/gnome rm -rf $startdir/pkg/usr/share/omf # gconf stuff export GCONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/gconf/gconf.xml.defaults" if [ -d $startdir/pkg/etc/gconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/gconf/gconf.xml.defaults SCHEMAS=$startdir/pkg/etc/gconf/schemas for schema in $SCHEMAS/*.schemas; do gconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/gconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/gconf ; find . -type f -exec chmod 644 {} \; ) fi }