summaryrefslogtreecommitdiff
path: root/community-testing/luajit/PKGBUILD
blob: bd1906fe08da3eb7f345ef9e44144b1c756dfe63 (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
38
39
40
# $Id: PKGBUILD 67113 2012-03-04 14:27:50Z 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.0b9
pkgrel=1
pkgdesc="A Just-In-Time Compiler for Lua"
arch=('i686' 'x86_64')
url="http://luajit.org/"
license=('MIT')
depends=('gcc-libs') 
source=("http://luajit.org/download/LuaJIT-${pkgver/b/-beta}.tar.gz"
        "http://luajit.org/download/beta${pkgver: -1}_hotfix1.patch"
        'luaconf.patch'
        'Makefile.patch')
md5sums=('e7e03e67e2550817358bc28b44270c6d'
         '4920f04fcef1ce486891509faf26b4f1'
         'c8da9c6790e20a12a0e2496f438d9dc3'
         '8997c5e5fa4f6e8e0b86cc6b888de631')

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

  patch -Np1 -i "$srcdir/beta${pkgver: -1}_hotfix1.patch"
  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"
}