Skip to content

Commit

Permalink
lua: add 5.4.7
Browse files Browse the repository at this point in the history
required for tio
  • Loading branch information
lazka committed Sep 30, 2024
1 parent c16c391 commit 485f374
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions lua/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Maintainer: Christoph Reiter <[email protected]>

pkgname=lua
pkgver=5.4.7
_majorver=${pkgver%.*}
pkgrel=1
pkgdesc='Powerful lightweight programming language designed for extending applications'
arch=('x86_64')
url='https://www.lua.org/'
makedepends=('make' 'gcc')
license=('spdx:MIT')
source=(https://www.lua.org/ftp/lua-$pkgver.tar.gz)
sha256sums=('9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30')

build() {
cd "lua-$pkgver"

make \
CFLAGS="${CFLAGS}" \
AR="${CC} -shared -Wl,--out-implib,liblua${_majorver}.dll.a -o" \
RANLIB=: \
LUA_A="msys-lua-${_majorver}.dll" \
linux
}

package() {
cd "lua-$pkgver"

make \
TO_BIN="msys-lua-${_majorver}.dll lua.exe luac.exe" \
TO_LIB="liblua${_majorver}.dll.a" \
INSTALL_DATA='cp -d' \
INSTALL_TOP="$pkgdir"/usr \
INSTALL_INC="$pkgdir"/usr/include \
INSTALL_LIB="$pkgdir"/usr/lib \
INSTALL_MAN="$pkgdir"/usr/share/man/man1 \
install

mkdir -p "$pkgdir/usr/lib/pkgconfig"
make pc \
INSTALL_TOP=/usr \
INSTALL_INC=/usr/include \
INSTALL_LIB=/usr/lib > "$pkgdir"/usr/lib/pkgconfig/lua.pc
}

0 comments on commit 485f374

Please sign in to comment.