updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / expac-git / PKGBUILD
blob7be6468fe223c04b5b58b532aaf900323a1f5d4c
1 # Contributor: Dave Reisner <d@falconindy.com>
3 pkgname=expac-git
4 pkgver=20110324
5 pkgrel=1
6 pkgdesc="pacman database extraction utility"
7 arch=('i686' 'x86_64')
8 url="http://github.com/falconindy/expac"
9 license=('MIT')
10 depends=('pacman')
11 makedepends=('git' 'perl')
12 conflicts=('expac')
13 provides=('expac')
15 _gitroot="git://github.com/falconindy/expac.git"
16 _gitname="expac"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d $_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   make
39 package() {
40   cd "$srcdir/$_gitname-build"
41   make PREFIX=/usr DESTDIR="$pkgdir" install
44 # vim: ft=sh syn=sh et