Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: luajit 2.1.0.beta3.r384.g1d7b5029-1
Browse files Browse the repository at this point in the history
  - Swap over to LuaJIT git HEAD. See LuaJIT/LuaJIT#665 (comment)
  - Create debug package

git-svn-id: file:///srv/repos/svn-community/svn@1121233 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
daurnimator authored and svntogit committed Jan 31, 2022
1 parent 97acfc5 commit 11473c3
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions trunk/PKGBUILD
Expand Up @@ -5,26 +5,33 @@
# Contributor: Anders Bergh <anders1@gmail.com>

pkgname=luajit
pkgver=2.0.5
pkgrel=3
# LuaJIT has abandoned versioned releases and now advises using git HEAD
# https://github.com/LuaJIT/LuaJIT/issues/665#issuecomment-784452583
_commit=1d7b5029c5ba36870d25c67524034d452b761d27
pkgver="2.1.0.beta3.r384.g${_commit::8}"
pkgrel=1
pkgdesc='Just-in-time compiler and drop-in replacement for Lua 5.1'
arch=('x86_64')
url='https://luajit.org/'
license=('MIT')
depends=('gcc-libs')
source=("https://luajit.org/download/LuaJIT-$pkgver.tar.gz")
md5sums=('48353202cbcacab84ee41a5a70ea0a2c')
sha256sums=('874b1f8297c697821f561f9b73b57ffd419ed8f4278c82e05b48806d30c1e979')
b2sums=('961c8622e19b0e66a76a875cb46ad149cb2559b5af41f360dc41dd0d6bb924583e6477dd1329f67c2ac6ea4b8dc42c5e2f4d63ea49400aba4d9e7c7e85e4b085')
options=(debug)
source=("LuaJIT-${_commit}.tar.gz::https://repo.or.cz/luajit-2.0.git/snapshot/${_commit}.tar.gz")
md5sums=('c9231846c3a5006826aef8f668a182dd')
sha256sums=('cbcb73645d48aae0285883c1132a4e7b882b4c9f8d2ecf0ccdcfd795443e186d')
b2sums=('eb4510c745dd2cb3b6444b434fc70d24088dad2d3a82e4e08d97bafdda075555a564084c850d695958889d39635bfaea1e012737f0cc31c257a62330eda2fdc5')

build() {
cd "LuaJIT-$pkgver"
make amalg PREFIX=/usr
cd "luajit-2.0-${_commit::7}"
# Avoid early stripping
make amalg PREFIX=/usr BUILDMODE=dynamic TARGET_STRIP=" @:"
}

package() {
cd "LuaJIT-$pkgver"
cd "luajit-2.0-${_commit::7}"

make install DESTDIR="$pkgdir" PREFIX=/usr
install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"

ln -sf luajit-2.1.0-beta3 "$pkgdir/usr/bin/luajit"
}

0 comments on commit 11473c3

Please sign in to comment.