1 # Maintainer: Scott Lawrence <bytbox@gmail.com>
5 pkgdesc="Simply counts source lines of code"
7 url="https://github.com/bytbox/sloc"
19 md5sums=() #generate with 'makepkg -g'
21 _gitroot=git://github.com/bytbox/sloc.git
23 #_gittag=go.weekly.2011-12-22
27 msg "Connecting to GIT server...."
29 if [[ -d "$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
31 msg "The local files are updated."
33 git clone "$_gitroot" "$_gitname"
36 msg "GIT checkout done or server timeout"
37 msg "Starting build..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
43 #git checkout -q $_gittag
48 cd "$srcdir/$_gitname-build"
50 install -d -m755 "${pkgdir}/usr/bin/"
51 install -m755 sloc "${pkgdir}/usr/bin/sloc"
54 # vim:set ts=2 sw=2 et: