summaryrefslogtreecommitdiff
path: root/system/lua5.3
diff options
context:
space:
mode:
Diffstat (limited to 'system/lua5.3')
-rw-r--r--system/lua5.3/APKBUILD18
1 files changed, 5 insertions, 13 deletions
diff --git a/system/lua5.3/APKBUILD b/system/lua5.3/APKBUILD
index 9a90fc7c9..11e7b4e06 100644
--- a/system/lua5.3/APKBUILD
+++ b/system/lua5.3/APKBUILD
@@ -4,11 +4,12 @@ _pkgname=lua
pkgver=5.3.5
_luaver=${pkgname#lua}
pkgrel=1
-pkgdesc="Light-weight programming language"
+pkgdesc="Embeddable programming language"
url="https://www.lua.org/"
arch="all"
license="MIT"
ldpath="/usr/lib/$pkgname"
+depends=""
depends_dev="$pkgname"
makedepends="libtool autoconf automake linenoise-dev"
provides="lua"
@@ -27,7 +28,6 @@ builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
- cd "$builddir"
# disable readline
sed -i '/#define LUA_USE_READLINE/d' src/luaconf.h
@@ -44,8 +44,6 @@ prepare() {
}
build() {
- cd "$builddir"
-
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -61,22 +59,18 @@ build() {
}
check() {
- cd "$builddir"
make test
}
package() {
- local i
- cd "$builddir"
-
make V=${pkgver%.*} \
INSTALL_TOP="$pkgdir"/usr \
INSTALL_INC="$pkgdir"/usr/include/$pkgname \
INSTALL_LIB="$pkgdir"/usr/lib/$pkgname \
alpine_install
- for i in "$pkgdir"/usr/lib/$pkgname/*.so.*; do
- ln -s $pkgname/${i##*/} "$pkgdir"/usr/lib/${i##*/}
+ for _solib in "$pkgdir"/usr/lib/$pkgname/*.so.*; do
+ ln -s $pkgname/${_solib##*/} "$pkgdir"/usr/lib/${_solib##*/}
done
install -D -m 644 doc/lua.1 "$pkgdir"/usr/share/man/man1/lua.1
@@ -122,9 +116,7 @@ package() {
dev() {
default_dev
- mkdir -p "$subpkgdir"/usr/$pkgname "$subpkgdir"/usr/lib/$pkgname
- ln -s ../include/$pkgname "$subpkgdir"/usr/$pkgname/include
- ln -s ../lib/$pkgname "$subpkgdir"/usr/$pkgname/lib
+ mkdir -p "$subpkgdir"/usr/lib/$pkgname
mv "$pkgdir"/usr/lib/$pkgname/liblua.so "$subpkgdir"/usr/lib/$pkgname/
}