iglunix/extra/lua/build.sh

29 lines
402 B
Bash
Raw Normal View History

2021-09-11 08:24:20 +00:00
pkgname=lua
pkgver=5.4.3
fetch() {
curl "http://www.lua.org/ftp/lua-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=$TRIPLE \
--host=$TRIPLE
make CC=cc
}
package() {
cd $pkgname-$pkgver
make install INSTALL_TOP=$pkgdir/usr
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}