diff --git a/alarm/luajit-git/PKGBUILD b/alarm/luajit-git/PKGBUILD new file mode 100644 index 000000000..e673e1a4e --- /dev/null +++ b/alarm/luajit-git/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Lukas Fleischer +# Contributor: Bartłomiej Piotrowski +# Contributor: Chris Brannon +# Contributor: Paulo Matias +# Contributor: Anders Bergh + +# ALARM: Kevin Mihelich +# - temporary git version for AArch64 + +buildarch=8 + +pkgname=luajit-git +pkgver=v2.1.0.beta1.r3.g55c3b29 +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') +provides=('luajit') +source=("git+https://github.com/LuaJIT/LuaJIT.git#branch=v2.1") +md5sums=('SKIP') + +pkgver() { + cd LuaJIT + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + ) +} + +build() { + cd LuaJIT + make amalg PREFIX=/usr +} + +package() { + cd LuaJIT + + make install DESTDIR="$pkgdir" PREFIX=/usr + install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT" +}