summaryrefslogtreecommitdiff
path: root/community/luajit/PKGBUILD
blob: ae3b5b6365059f9e307083b8b2824330da6100a3 (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
# $Id: PKGBUILD 78428 2012-10-18 04:30:04Z 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.0b11
pkgrel=3
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
        Makefile.patch)
md5sums=('824aa2684a11e3cc3abe87350a7b6139'
         'c9dff2a84424fa0af322379a5f115fb7')

build() { 
  cd $srcdir/LuaJIT-${pkgver/b/-beta}
  patch -Np0 -i $srcdir/Makefile.patch
  make PREFIX=/usr
}

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

  # Poor man's slot system
  ln -s /usr/share/$pkgname $pkgdir/usr/share/$pkgname-${pkgver/b/-beta}
}