summaryrefslogtreecommitdiff
path: root/community/luajit/PKGBUILD
blob: 3e56a034b591863387b35dfee8d275255055a5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 70509 2012-05-09 20:30:54Z bpiotrowski $
# Maintainer:  Chris Brannon <chris@the-brannons.com>
# Maintainer:  Bartłomiej Piotrowski 
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Anders Bergh <anders1@gmail.com>

pkgname=luajit 
pkgver=2.0.0b10
pkgrel=1
pkgdesc="A Just-In-Time Compiler for Lua"
arch=('i686' 'x86_64' 'mips64el')
url="http://luajit.org/"
license=('MIT')
depends=('gcc-libs') 
source=("http://luajit.org/download/LuaJIT-${pkgver/b/-beta}.tar.gz"
        'luaconf.patch'
        'Makefile.patch')
md5sums=('ed66689b96f7ad7bfeffe0b4ff2d63d4'
         'c8da9c6790e20a12a0e2496f438d9dc3'
         '8997c5e5fa4f6e8e0b86cc6b888de631')

build() { 
  cd "$srcdir/LuaJIT-${pkgver/b/-beta}"

  patch -Np0 -i "$srcdir/luaconf.patch"
  patch -Np0 -i "$srcdir/Makefile.patch"

  make
}

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

  install -Dm644 "$srcdir/LuaJIT-${pkgver/b/-beta}/COPYRIGHT" \
                 "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
}