updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / pacaur-git / PKGBUILD
blobb4bfd9065a43a6f860f39f05c09e764de7927529
1 # Maintainer: Remy Marquis <remy.marquis at gmail dot com>
3 pkgname=pacaur-git
4 pkgver=20120113
5 pkgrel=1
6 pkgdesc="A fast workflow AUR wrapper using cower as backend"
7 arch=('any')
8 url="https://github.com/Spyhawk/pacaur"
9 license=('GPL')
10 depends=('cower' 'expac' 'sudo')
11 optdepends=('pacman-color: colorized output')
12 makedepends=('git')
13 provides=('pacaur')
14 conflicts=('pacaur')
15 backup=('etc/xdg/pacaur/pacaur.conf')
16 _gitroot='http://github.com/Spyhawk/pacaur.git'
17 _gitname='pacaur'
19 build() {
20   cd "$startdir/src"
22   msg "Connecting to github GIT server...."
24   if [ -d "$startdir/src/$_gitname" ] ; then
25     cd $_gitname && git pull origin
26   else
27     git clone "$_gitroot"
28     cd $_gitname
29   fi
31   mkdir -p "$pkgdir/etc/"
32   install -D -m644 ./pacaur.conf $pkgdir/etc/xdg/pacaur/pacaur.conf || return 1
33   install -D -m755 ./pacaur $pkgdir/usr/bin/pacaur || return 1
34   install -D -m755 ./pacaur.bash.complete\
35         $pkgdir/etc/bash_completion.d/pacaur || return 1
36   mkdir -p "$pkgdir/usr/share/man/man8/"
37   pod2man --section=8 --center="Pacaur Manual" --name="PACAUR" --release="$pkgname $pkgver" ./README.pod > pacaur.8
38   install -m 644 ./pacaur.8 $pkgdir/usr/share/man/man8/pacaur.8