updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lua-ircbot-git / PKGBUILD
blobe2505f4bb884991f8ae3f84cfc1b8947b629a223
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-ircbot-git
3 pkgver=20110620
4 pkgrel=1
5 pkgdesc="IRC bot framework in Lua"
6 arch="any"
7 url="https://github.com/JakobOvrum/ircbot"
8 license=('MIT')
9 provides=('lua-ircbot')
10 depends=('lua' 'lua-irc')
11 makedepends=('git')
13 _gitroot="$url.git"
14 _gitname="ircbot"
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/ircbot/plugins/
36         install -Dm0664 *.lua \
37                 $pkgdir/usr/share/lua/5.1/ircbot/
38     install -Dm0664 plugins/*.lua \
39         $pkgdir/usr/share/lua/5.1/ircbot/plugins/
40         install -Dm0664 LICENSE.txt \
41                 $pkgdir/usr/share/licenses/$pkgname/LICENSE.txt
42