1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
5 pkgdesc="A Lua wrapper for the Anyhub API."
7 url="https://github.com/TheLinx/lanyhub"
9 depends=('lua>=5.1' 'lua-curl')
11 conflicts=('lua-anyhub')
13 _gitroot="git://github.com/TheLinx/lanyhub.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
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