updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / shotwell-git / PKGBUILD
blob12e3fd7639c289fe265db77821b6faa6f1d6fd52
1 # Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
2 # Contributor: florianbw <florian(dot)bw(at)gmail(dot)com>
3 # Contributor: Frederic Bezies <fredbezies(at)gmail(dot)com>
4 # Contributor: Robert Chmielowiec <robert(at)chmielowiec(dot)net>
5 # Contributor: Daniel <quite(at)hack(dot)org>
6 # Contributor: mariusz <my.swiat@o2.pl>
8 pkgname=shotwell-git
9 _pkgname=shotwell
10 pkgver=20111009
11 pkgrel=1
12 pkgdesc="A digital photo organizer designed for the GNOME desktop environment"
13 arch=('i686' 'x86_64')
14 url="http://yorba.org/shotwell/"
15 license=('LGPL2.1')
16 depends=('desktop-file-utils' 'gconf' 'gnome-vfs' 'json-glib' 'libgee' 'libgexiv2-git' 'libgphoto2' 'libquicktime' 'librsvg' 'libunique3' 'libwebkit3' 'dconf')
17 makedepends=('git' 'intltool' 'libraw' 'pkgconfig' 'vala>=0.11.7')
18 provides=('shotwell')
19 conflicts=('shotwell')
20 install=${_pkgname}.install
21          
22 _gitroot=git://yorba.org/${_pkgname}
23 _gitname=${_pkgname}
25 build() {
26   cd ${srcdir}
27   msg "Connecting to GIT server...."
28   if [ -d ${_gitname} ] ; then
29     cd ${_gitname} && git pull origin
30     msg "The local files are updated."
31   else
32     git clone ${_gitroot} ${_gitname}
33   fi
34   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
37   rm -rf ${srcdir}/${_gitname}-build
38   git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
39   cd ${srcdir}/${_gitname}-build
40   
41   ./configure --prefix=/usr \
42     --disable-schemas-compile \
43     --disable-desktop-update \
44     --disable-icon-update
45   make
48 package() {
49   cd ${srcdir}/${_gitname}-build
50   make DESTDIR=${pkgdir} install