db-move: moved gnome-calendar from [testing] to [extra] (x86_64)
[arch-packages.git] / luajson / trunk / PKGBUILD
blobe02bd28c6d22875552ba7c6a1e92739d2b89e307
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2 # Contributor: Luca P <meti at lplab.net>
4 pkgbase=luajson
5 pkgname=(lua52-luajson)
6 pkgver=1.3.4
7 pkgrel=3
8 pkgdesc="JSON parser/encoder for Lua"
9 url="http://luaforge.net/projects/luajson/"
10 arch=(any)
11 license=(MIT)
12 makedepends=(lua52-lpeg)
13 source=(https://github.com/harningt/$pkgbase/archive/$pkgver.tar.gz)
14 md5sums=('66ef8d00bcaeec91b25433a697090bc8')
16 package_lua52-luajson() {
17   pkgdesc+=" 5.2"
18   depends=(lua52-lpeg)
20   cd $pkgbase-$pkgver
21   make PREFIX=/usr DESTDIR="$pkgdir" \
22     INSTALL_LMOD='$(INSTALL_TOP)/share/lua/5.2' \
23     INSTALL_CMOD='$(INSTALL_TOP)/lib/lua/5.2' install
24   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE