updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / ontv-git / PKGBUILD
blob7450121b4cf4eb4c61088ec71fc1fa15187deb35
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=ontv-git
3 pkgver=20110523
4 pkgrel=1
5 pkgdesc="GNOME Applet for monitoring TV programs"
6 arch=('any')
7 url="http://live.gnome.org/OnTV"
8 license=('GPL')
9 depends=('dbus-python' 'python2-gconf' 'python2-libgnome' 'python-notify>=0.1.1' 'vte' 'xmltv' 'hicolor-icon-theme' 'xdg-utils')
10 makedepends=('git' 'gnome-common' 'gnome-python>=2.16.0' 'intltool>=0.33')
11 provides=('ontv')
12 conflicts=('ontv')
13 install=$pkgname.install
15 _gitroot="git://git.gnome.org/ontv"
16 _gitname="ontv"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # BUILD HERE
38   #
40   sed -i 's@^#!.*python$@#!/usr/bin/python2@' bin/*
42   ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
43                --disable-static --disable-schemas-install --enable-gnome-applet \
44                --with-gconf-schema-file-dir=/usr/share/gconf/schemas \
45                PYTHON=python2
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
52   make DESTDIR="$pkgdir/" install