1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
5 pkgdesc="An OAuth client library for Lua."
7 url="https://github.com/ignacio/LuaOAuth"
9 depends=('lua>=5.1' 'luasocket' 'luasec' 'luacrypto' 'lua-base64')
11 conflicts=('lua-oauth')
12 provides=('lua-oauth')
14 _gitroot="git://github.com/ignacio/LuaOAuth.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
35 cd "$srcdir/$_gitname"
36 install -Dm0664 src/OAuth.lua \
37 $pkgdir/usr/share/lua/5.1/OAuth/init.lua
38 install -Dm0664 LICENSE \
39 $pkgdir/usr/share/licenses/$pkgname/LICENSE