updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / git2cl-git / PKGBUILD
blob68e8ae83301b57cd333279e9be9bc92df1b72ae3
1 # Contributor: Jan Stępień <jstepien@users.sourceforge.net>
3 pkgname=git2cl-git
4 pkgver=20081110
5 pkgrel=1
6 pkgdesc="Convert git logs to GNU ChangeLog format"
7 url="http://josefsson.org/git2cl/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('git' 'perl')
11 makedepends=('git')
12 conflicts=('git2cl')
13 provides=('git2cl')
14 source=()
15 md5sums=()
17 _gitroot="git://repo.or.cz/git2cl.git"
18 _gitname="git2cl"
20 build() {
21         cd ${srcdir}
22         msg "Connecting to repo.or.cz Git server."
24         if [ -d ${srcdir}/$_gitname ] ; then
25                 cd $_gitname && git pull origin || return 1
26                 msg "The local files have been updated."
27         else
28                 git clone $_gitroot || return 1
29         fi
30         
31         msg "Git checkout done."
33         mkdir -p ${pkgdir}/usr/{bin/,share/doc/${pkgname/\-git/}} || return 1
34         install -m755 ${srcdir}/${_gitname}/git2cl ${pkgdir}/usr/bin || return 1
35         install -m644 ${srcdir}/${_gitname}/README* ${pkgdir}/usr/share/doc/${pkgname/\-git/} || return 1