# Maintainer: Linus Sjögren pkgname=lua-penlight-git pkgver=20121212 pkgrel=1 pkgdesc="A set of pure Lua libraries focusing on input data handling, functional programming, and OS path management." arch="any" url="https://github.com/stevedonovan/Penlight" license=('MIT') provides=('lua-penlight') conflicts=('lua-penlight') depends=('lua' 'lua-filesystem') makedepends=('git') _gitroot="$url.git" _gitname="Penlight" build() { cd "$srcdir" msg "Connecting to GIT server...." if [ -d $_gitname ] ; then cd $_gitname && git pull origin msg "The local files are updated." else git clone $_gitroot $_gitname fi msg "GIT checkout done or server timeout" msg "Installing..." # # BUILD HERE # cd "$srcdir/$_gitname" mkdir -p $pkgdir/usr/share/lua/5.2/pl cp -r lua/pl/* \ $pkgdir/usr/share/lua/5.2/pl/ install -Dm0664 LICENCE.txt \ $pkgdir/usr/share/licenses/$pkgname/LICENCE.txt }