updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / lua-irc-git / PKGBUILD
bloba4689cad76fd2546a0bfea1a5bca51f8a5d2bb6f
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-irc-git
3 pkgver=20101121
4 pkgrel=2
5 pkgdesc="IRC library for Lua"
6 arch="any"
7 url="https://github.com/JakobOvrum/LuaIRC"
8 license=('MIT')
9 provides=('lua-irc')
10 depends=('lua' 'luasocket')
11 makedepends=('git')
13 _gitroot="$url.git"
14 _gitname="LuaIRC"
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         mkdir -p $pkgdir/usr/share/lua/5.1/irc/
36         install -Dm0664 *.lua \
37                 $pkgdir/usr/share/lua/5.1/irc/
38         install -Dm0664 LICENSE.txt \
39                 $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
40