1 # Maintainer: Hanspeter Portner <agenthp@users.sf.net>
5 pkgdesc="Lua integration with libev"
7 url="https://github.com/psychon/lua-ev"
9 depends=('libev' 'lua')
10 makedepends=('git' 'cmake')
12 md5sums=() #generate with 'makepkg -g'
14 _gitroot="https://github.com/psychon/lua-ev.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"
29 msg "Starting build..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
38 cmake -DINSTALL_CMOD=/usr/lib/lua/5.1 -DCMAKE_INSTALL_PREFIX=/usr .
43 cd "$srcdir/$_gitname-build"
44 make DESTDIR="$pkgdir/" install
45 mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
46 head -n 26 README > "$pkgdir/usr/share/licenses/$pkgname/COPYING"