summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 324f068aed1025c9aa7ae1651078cd8a89c3680d (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
pkgname=luajit-git
pkgver=2.0.5.25.g61464b0
pkgrel=1
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') 
makedepends=('git')
conflicts=('luajit')
provides=('luajit')
source=(git+http://luajit.org/git/luajit-2.0.git)
sha256sums=('SKIP')

pkgver() {
  cd luajit-2.0
  git describe | sed 's/^v//;s/-/./g'
}

build() { 
  cd luajit-2.0
  make amalg PREFIX=/usr
}

package() {
  cd luajit-2.0
  make install DESTDIR=$pkgdir PREFIX=/usr
  install -Dm644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
}