update: lua multiversion
This commit is contained in:
30
dev-lang/lua-5.1.5.PKGBUILD
Normal file
30
dev-lang/lua-5.1.5.PKGBUILD
Normal 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:
|
||||
@@ -15,7 +15,7 @@ src_prepare() {
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr --with-readline
|
||||
./configure --prefix=/usr --with-readline --docdir="/usr/share/doc/${pkgname}-${pkgver}"
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user