updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / totem-gst / PKGBUILD
bloba0fc9348f98a088d40b68aed290ef964ebac93d2
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgbase=totem-gst
5 _pkgbase=totem
6 pkgname=totem-gst
7 true && pkgname=('totem-gst' 'totem-plugin-gst')
8 pkgver=3.0.1
9 pkgrel=1
10 pkgdesc="A GNOME3 integrated movie player based on GStreamer (Uses the old GStreamer backend without Clutter)"
11 url="http://www.gnome.org"
12 arch=('i686' 'x86_64')
13 license=('GPL2' 'custom')
14 depends=('gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'totem-plparser' 'libxxf86vm'
15          'libxtst' 'desktop-file-utils' 'iso-codes' 'python2' 'libpeas' 'hicolor-icon-theme'
16          'gnome-icon-theme-symbolic' 'gsettings-desktop-schemas' 'dconf')
17 makedepends=('gnome-common' 'intltool' 'gtk-doc' 'python2-gobject' 'nautilus' 'libgdata' 'xulrunner' 'lirc-utils'
18              'libepc' 'bluez' 'vala' 'grilo')
19 options=('!libtool' '!emptydirs')
20 source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgbase}/${pkgver%.*}/${_pkgbase}-${pkgver}.tar.bz2
21         totem-3.2.patch)
22 sha256sums=('013b6cfedac6ff264aa27de7346597d0b8da7f4ed1f91b2c966a13d3fdff679a'
23             '4e634d44fddf3f34693e6707c2b94fae760d09bebdcd0b23ffa6f22627b90e8d')
24 build() {
25   cd "${srcdir}/${_pkgbase}-${pkgver}"
26   patch -Np1 -i "${srcdir}/totem-3.2.patch"
27   chmod 755 data/uri-scheme-include.sh
28   autoreconf -fi
29   ./configure --prefix=/usr \
30     --sysconfdir=/etc \
31     --libexecdir=/usr/lib/totem \
32     --localstatedir=/var \
33     --disable-static \
34     --enable-python \
35     --enable-nautilus
36   make
39 package_totem-gst() {
40   groups=('gnome-extra')
41   install=totem.install
42   optdepends=('gstreamer0.10-ugly-plugins: Extra media codecs'
43               'gstreamer0.10-bad-plugins: Extra media codecs'
44               'gstreamer0.10-ffmpeg: Extra media codecs'
45               'lirc-utils: Infrared Remote Control plugin'
46               'libepc: Publish Playlist plugin'
47               'libgdata: YouTube Browser plugin'
48               'bluez: Bemused plugin'
49               'grilo-plugins: Browse sidebar (remote media)'
50               'pyxdg: opensubtitles plugin')
51   conflicts=(totem)
52   provides=("totem=$pkgver")
54   cd "${srcdir}/${_pkgbase}-${pkgver}"
55   make DESTDIR="${pkgdir}" install
57   rm -r "${pkgdir}/usr/lib/mozilla"
58   rm "${pkgdir}/usr/lib/totem/totem-plugin-viewer"
60   sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" \
61     $pkgdir/usr/lib/totem/{totem/totem-bugreport.py,plugins/iplayer/iplayer2.py}
63   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/totem-gst/COPYING"
66 package_totem-plugin-gst() {
67   pkgdesc="Totem plugin for web browsers"
68   depends=("totem=${pkgver}")
69   conflicts=(totem-plugin)
70   provides=("totem-plugin=$pkgver")
72   cd "${srcdir}/${_pkgbase}-${pkgver}"
73   make -C browser-plugin \
74     plugindir=/usr/lib/mozilla/plugins \
75     xptdir=/usr/lib/mozilla/plugins \
76     DESTDIR="${pkgdir}" install
78   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/totem-plugin-gst/COPYING"
81 # AUR workaround
82 pkgdesc="A GNOME3 integrated movie player based on GStreamer (Uses the old GStreamer backend without Clutter)"
83 depends=('gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'totem-plparser' 'libxxf86vm'
84          'libxtst' 'desktop-file-utils' 'iso-codes' 'python2' 'libpeas' 'hicolor-icon-theme'
85          'gnome-icon-theme-symbolic' 'gsettings-desktop-schemas' 'dconf')