updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / lua-anyhub-git / PKGBUILD
blob1a475e887343b62ac621fbf57e663e44a909c82b
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-anyhub-git
3 pkgver=20101114
4 pkgrel=2
5 pkgdesc="A Lua wrapper for the Anyhub API."
6 arch="any"
7 url="https://github.com/TheLinx/lanyhub"
8 license=('custom:CC0')
9 depends=('lua>=5.1' 'lua-curl')
10 makedepends=('git')
11 conflicts=('lua-anyhub')
13 _gitroot="git://github.com/TheLinx/lanyhub.git"
14 _gitname="lanyhub"
16 build() {
17   cd "$srcdir"
18   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 "Installing..."
30   #
31   # BUILD HERE
32   #
34   cd "$srcdir/$_gitname"
35         install -Dm0664 anyhub/init.lua \
36                 $pkgdir/usr/share/lua/5.1/anyhub/init.lua
37         install -Dm0664 LICENSE \
38                 $pkgdir/usr/share/licenses/$pkgname/LICENSE
39