You are not logged in.
# $Id: PKGBUILD,v 1.2 2005/06/24 11:38:09 arjan Exp $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=totem-devel
pkgver=1.1.3
pkgrel=1
url="http://www.hadess.net/totem.php3"
pkgdesc="GNOME2 integrated movie player based on Xine"
depends=('xine-lib' 'nautilus-cd-burner' 'iso-codes' 'musicbrainz')
makedepends=('intltool')
install=totem.install
conflicts=('totem' 'totem-xine')
source=(http://ftp.gnome.org/pub/gnome/sources/totem/1.1/totem-$pkgver.tar.bz2)
md5sums=('e8d34fed67924efa00ae50a294b94d60')
build() {
[ "$GNOMEDIR" = "" ] && . /etc/profile.d/gnome.sh
cd $startdir/src/totem-$pkgver
find . -name Makefile.in -exec sed -i -e 's/-scrollkeeper-update.*//' {} ;
if [ -f omf.make ]; then
sed -i -e 's/-scrollkeeper-update.*//' omf.make
fi
./configure --prefix=/opt/gnome --disable-lirc
--enable-nautilus --disable-vanity
--disable-gstreamer --enable-mozilla
make || return 1
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=$startdir/pkg install
}
As you can see, I've enabled the Mozilla plugin, disabled Vanity, and selected Xine as the backend. Change the compile options however you want, but remember, you should use Xine if you're going to use the Mozilla plugin!
Here's the totem.install file:
pkgname=totem-devel
post_install() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
update-desktop-database -q
update-mime-database opt/gnome/share/mime > /dev/null 2>&1
}
pre_upgrade() {
pre_remove $1
}
post_upgrade() {
post_install $1
}
pre_remove() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
}
post_remove() {
update-desktop-database -q
update-mime-database opt/gnome/share/mime > /dev/null 2>&1
}
op=$1
shift
$op $*
Edit: added md5sum to PKGBUILD.
Offline
Thats a great idea!
Nice packagebuild! Mplayer-plugin often crashes Firefox so this is great. 8)
Offline
Thanks!
If you're wondering why the PKGBUILD is so good, that's because it's modified directly from the one for totem-xine. :oops:
Offline