updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tango-icon-theme-cvs / PKGBUILD
blobe08b6ad05739999303726e260df66f0e27599d7a
1 # Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
3 pkgname=tango-icon-theme-cvs
4 pkgver=20111211
5 pkgrel=1
6 pkgdesc="The Tango Desktop Project exists to create a consistent user experience"
7 arch=('any')
8 url="http://tango-project.org"
9 license=('CCPL')
10 depends=('librsvg')
11 conflicts=('tango-icon-theme')
12 provides=('tango-icon-theme')
13 makedepends=('cvs' 'imagemagick' 'icon-naming-utils' 'gnome-common')
15 _cvsroot=":pserver:anoncvs@anoncvs.freedesktop.org:/cvs/tango"
16 _cvsmod="tango-icon-theme"
18 build() {
19         cd "$srcdir"
20         msg "Connecting to anoncvs.freedesktop.org CVS server...."
22         if [[ -d "$_cvsmod/CVS" ]]; then
23           cd "$_cvsmod"
24           cvs -z3 update -d
25         else
26           cvs -z3 -d "$_cvsroot" co -D "$pkgver" -f "$_cvsmod"
27           cd "$_cvsmod"
28         fi
30         msg "CVS checkout done or server timeout"
31         msg "Starting build..."
33   rm -rf "$srcdir/$_cvsmod-build"
34   cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
35   cd "$srcdir/$_cvsmod-build"
37         ./autogen.sh
39         ./configure --prefix=/usr
40         make
43 package() {
44   cd "$srcdir/$_cvsmod-build"
45         make DESTDIR="$pkgdir" install