update: lua multiversion

This commit is contained in:
2026-01-18 20:59:43 -05:00
parent 75bb8d7dc2
commit d5d39d49ba
2 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
pkgname=lua
pkgver=5.1.5
_majorver=${pkgver%.*}
pkgdesc='Powerful lightweight programming language designed for extending applications'
arch=('x86_64')
homepage='https://www.lua.org/'
depends=('readline')
license=('MIT')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://dev.gentoo.org/~soap/distfiles/${sources[0]}")
sha512sums=("bd827cb2e63cd71d15d846eb29c8745bf869e7b70e12c565ce173623d1fcd29dabf4d33a99c48f294151bb580d830c112cf178e2d80a5a5c36acc7b3bfcd7d24")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="$pkgdir" install
}
# vim:ft=sh syn=sh et sw=2:

View File

@@ -15,7 +15,7 @@ src_prepare() {
} }
src_build() { src_build() {
./configure --prefix=/usr --with-readline ./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
make make
} }