updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / lxappearance2-git / PKGBUILD
blob4e2459da584646cf99e841bee4f8a76ecc16eaa9
1 # Maintainer: Dave Reisner <d@falconindy.com>
2 # Contributor: Keshav P R <skodabenz at rocketmail dot com>
4 pkgname=lxappearance2-git
5 pkgver=20110517
6 pkgrel=1
7 pkgdesc="GTK+ theme switcher for LXDE (manages icons and fonts) - Version 2 - GIT"
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 url="http://lxde.org/"
11 depends=('gtk2' 'intltool')
12 makedepends=('git' 'pkgconfig' 'gettext' 'docbook-xsl')
13 conflicts=('lxappearance')
14 provides=('lxappearance')
15 _gitroot="git://lxde.git.sourceforge.net/gitroot/lxde/lxappearance"
16 _gitname="lxappearance"
18 build() {
19   cd $srcdir
20   msg "Connecting to GIT server...."
22   if [[ -d $srcdir/$_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   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34   cd $srcdir/$_gitname-build
36   ./autogen.sh
37   ./configure --sysconfdir=/etc --prefix=/usr --enable-man
38   make
41 package() {
42   cd $srcdir/$_gitname-build
44   make DESTDIR="$pkgdir" install