updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / lua-oauth-git / PKGBUILD
blobd0cf86c9735803e710c5d68be2ab7e37169d81c8
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-oauth-git
3 pkgver=20101203
4 pkgrel=1
5 pkgdesc="An OAuth client library for Lua."
6 arch="any"
7 url="https://github.com/ignacio/LuaOAuth"
8 license=('MIT')
9 depends=('lua>=5.1' 'luasocket' 'luasec' 'luacrypto' 'lua-base64')
10 makedepends=('git')
11 conflicts=('lua-oauth')
12 provides=('lua-oauth')
14 _gitroot="git://github.com/ignacio/LuaOAuth.git"
15 _gitname="LuaOAuth"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Installing..."
31   #
32   # BUILD HERE
33   #
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
40