updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / yaourt-git / PKGBUILD
blob069330901c7e407ea43eb1161bcfc46a695c1b81
1 # Maintainer:  tuxce <tuxce;net@gmail.com>
2 # Contributor: Julien MISCHKOWITZ <wain@archlinux.fr>
4 pkgname=yaourt-git
5 pkgver=20111013
6 pkgrel=1
7 pkgdesc="A pacman wrapper with extended features and AUR support"
8 arch=('any')
9 url="http://www.archlinux.fr/yaourt-en/"
10 license=('GPL')
11 depends=('package-query-git' 'pacman>=4')
12 makedepends=('git')
13 optdepends=('aurvote: vote for your favorite AUR packages'
14     'customizepkg: automatically modify PKGBUILD during install/upgrade'
15     'rsync: retrieve PKGBUILD from official repositories'
16     'pacman-color: fully colorized output')
17 provides=('yaourt')
18 conflicts=('yaourt')
19 backup=('etc/yaourtrc')
20 install=yaourt.install
22 _gitroot=http://projects.archlinux.fr/yaourt.git
23 _gitname=yaourt
25 build() {
26   cd "$srcdir"
28   if [[ -d $_gitname ]]; then
29     cd $_gitname && git pull origin && cd ..
30   else
31     git clone $_gitroot
32   fi
34   rm -rf $_gitname-build
35   git clone $_gitname $_gitname-build
36   cd "$srcdir/$_gitname-build/src"
37   make PREFIX=/usr sysconfdir=/etc localstatedir=/var 
41 package() {
42   cd "$srcdir/$_gitname-build/src"
43   make PREFIX=/usr sysconfdir=/etc localstatedir=/var DESTDIR=$pkgdir install