# $Id: PKGBUILD 112332 2014-05-31 14:02:42Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Chris Brannon <chris@the-brannons.com>
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Anders Bergh <anders1@gmail.com>

pkgname=luajit
pkgver=2.0.3
pkgrel=3
pkgdesc='Just-in-time compiler and drop-in replacement for Lua 5.1'
arch=('i686' 'x86_64')
url='http://luajit.org/'
license=('MIT')
depends=('gcc-libs')
source=(http://luajit.org/download/LuaJIT-$pkgver.tar.gz)
md5sums=('f14e9104be513913810cd59c8c658dc0')

build() {
  cd LuaJIT-$pkgver
  make amalg PREFIX=/usr
}

package() {
  cd LuaJIT-$pkgver
  make install DESTDIR="$pkgdir" PREFIX=/usr

  install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
}
