31 lines
768 B
Bash
31 lines
768 B
Bash
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:
|