updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / google-gadgets-gtk-svn / PKGBUILD
blobef0e1bce36b79754117eca2137e5dce4b92deaf2
1 # Contributor: zhuqin <zhuqin@gmail.com>
2 # Maintainer: Lucas Salies Brum <lucas@archlinux.com.br>
4 pkgname=google-gadgets-gtk-svn
5 pkgver=1168
6 pkgrel=1
7 pkgdesc="Google Gadgets for linux (svn version, gtk toolkit)"
8 url="http://code.google.com/p/google-gadgets-for-linux/"
9 license="Apache"
10 depends=('curl' 'libxml2' 'zlib' 'xulrunner' 'dbus' 'cairo' 'gtk2')
11 makedepends=('subversion' 'autoconf' 'automake' 'libtool' 'flex')
12 conflicts=()
13 provides=()
14 source=()
15 md5sums=()
16 arch=('i686' 'x86_64')
17 options=('!libtool')
18 install=ggl.install
20 _svntrunk=http://google-gadgets-for-linux.googlecode.com/svn/trunk/
21 _svnmod=google-gadgets
23 build() {
24         cd $srcdir
25         if [ -d $_svnmod/.svn ]; then
26                 (cd $_svnmod && svn up -r $pkgver)
27         else
28                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29         fi
30         cp -r ${_svnmod} ${_svnmod}-build
31         cd ${_svnmod}-build
32                
33         sh autotools/bootstrap.sh
34         ./configure --prefix=/usr \
35                     --disable-libggadget-qt \
36                     --disable-qt-system-framework \
37                     --disable-qtwebkit-browser-element \
38                     --disable-qt-host \
39                     --disable-ltdl-install \
40                     --disable-static \
41                     --disable-update-mime-database \
42                     --disable-update-desktop-database \
43                     --enable-smjs-script-runtime \
44                     --enable-gtk-host \
45                     --enable-libggadget-gtk \
46                     --enable-gst-audio-framework \
47                     --enable-gst-mediaplayer-element \
48                     --enable-libggadget-dbus \
49                     --enable-gtkmoz-browser-element \
50                     --enable-gtk-system-framework \
51                     --enable-curl-xml-http-request \
52                     --enable-libxml2-xml-parser
53                     
54         make || return 1
55         make DESTDIR=$pkgdir install || return 1
57         rm -rf $srcdir/$_svnmod-build