updated on Wed Jan 18 16:10:53 UTC 2012
[aur-mirror.git] / nautilus-git-scripts / PKGBUILD
blob2e63f6bc78eb28c0f0a1c239f6ffe7b2c5d6f396
1 # Maintainer: Aljosha Papsch <joschi.papsch@yahoo.de>
3 pkgname=nautilus-git-scripts
4 pkgver=20110411
5 pkgrel=1
6 pkgdesc="Nautilus scripts for interacting with a Git repository"
7 arch=(any)
8 url="https://github.com/tapio/nautilus-git-scripts"
9 license=('GPL2')
10 depends=('nautilus' 'zenity')
11 makedepends=('git')
12 install=nautilus-git-scripts.install
14 _gitroot="https://github.com/tapio/nautilus-git-scripts.git"
15 _gitname="nautilus-git-scripts"
17 build() {
18     cd ${srcdir}
19     msg "Connecting to GIT server..."
20     if [ -d ${_gitname} ]; then
21         cd ${_gitname} && git pull origin
22         msg "The local files are updated"
23     else
24         git clone ${_gitroot} ${_gitname}
25     fi
27     msg "GIT checkout done or server timeout"
28     msg "Starting make..."
29     if [ `pwd` != ${_gitname} ]; then
30         cd ${srcdir}/${_gitname}
31     fi
33     mkdir -p ${pkgdir}/usr/share/nautilus-git-scripts
34     cp -rf Git/ ${pkgdir}/usr/share/nautilus-git-scripts
35