pkgname=lua
pkgver=5.4.8
_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=("c8001304dc1bb622521282358856e40eb9277a8d0496614211ff8d1865d14fadd8d584d0636831ca5de8ca57462b90e1484701e91b05f3d685c736b9e72905ca")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr --with-readline
  make
}

src_check() {
  make check
}

src_install() {
  make DESTDIR="$pkgdir" install
}

# vim:ft=sh syn=sh et sw=2:
