updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / aur-git / PKGBUILD
blobdf0bd745bfc5720317c65db2fd6806c87293d8d1
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
3 pkgname=aur-git
4 pkgver=20110711
5 pkgrel=1
6 pkgdesc='abs-like command line tool to sync with the aur git repository'
7 arch=('any')
8 url='https://github.com/gostrc/aur'
9 license=('MIT')
10 makedepends=('git')
12 _gitroot='git://github.com/gostrc/aur.git'
13 _gitname='aur'
15 build() {
16   msg 'Connecting to GIT server...'
18   if [[ -d ${_gitname} ]]
19   then
20     cd ${_gitname}
21     git pull
22   else
23     git clone ${_gitroot}
24   fi
26   msg 'GIT checkout done or server timeout'
29 package() {
30   cd ${_gitname}
32   install -d ${pkgdir}/usr/bin
33   install aur \
34     ${pkgdir}/usr/bin
36   install -d ${pkgdir}/usr/share/licenses/aur-git
37   install -m644 LICENSE \
38     ${pkgdir}/usr/share/licenses/aur-git
39