1 # Maintainer: Justin Davis <jrcd83@gmail.com>
2 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
7 pkgdesc="Integrates the yajl JSON library with Lua."
9 url='http://github.com/brimworks/lua-yajl'
11 depends=('yajl>=2' 'lua>=5.1')
12 makedepends=(git cmake)
15 md5sums=('27c5699b8602d4d18e139339b96ae5dc')
17 _gitroot="git://github.com/brimworks/lua-yajl.git"
19 _repodir="${srcdir}/lua-yajl"
22 msg "Building ${pkgname}..."
24 if [ -d "$_repodir" ] ; then
25 warning 'Repository directory already exists!'
29 git pull "$_gitroot" master
31 msg2 "Cloning $_gitroot repository..."
32 git clone "$_gitroot" "$_repodir"
34 git checkout "$_gitbranch"
42 msg "Packaging ${pkgname}..."
44 make DESTDIR="$pkgdir" install
45 install -Dm644 "${srcdir}/LICENSE" \
46 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
48 mkdir -p "${pkgdir}/usr/lib/lua/5.1"
49 mv -t "${pkgdir}/usr/lib/lua/5.1/" "${pkgdir}/usr/local/share/lua/cmod/"*
50 rm -R "${pkgdir}/usr/local"
57 # vim:set ts=2 sw=2 et: