1 # Maintainer: baskerville <nihilhill@gmail.com>
2 # Contributor: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
7 pkgdesc="Free Software LHA implementation"
9 url="http://fragglet.github.com/lhasa/"
13 conflicts=('lhasa' 'lha')
14 provides=('lhasa' 'lha')
16 _gitroot="git://github.com/fragglet/lhasa.git"
21 msg "Connecting to GIT server...."
23 if [[ -d $_gitname ]] ; then
24 cd "$_gitname" && git pull origin
25 msg "The local files are updated."
27 git clone "$_gitroot" "$_gitname"
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
37 ./autogen.sh --prefix=/usr
43 cd "$srcdir/$_gitname-build"
45 make DESTDIR="$pkgdir" install
48 # vim: ft=sh syn=sh et