diff options
author | CyberLeo <cyberleo@cyberleo.net> | 2020-03-28 05:45:52 -0500 |
---|---|---|
committer | CyberLeo <cyberleo@cyberleo.net> | 2020-03-28 05:45:52 -0500 |
commit | 9297468fa579836e3a6a381b798feb6b78217c2d (patch) | |
tree | 53168212f427afbcf0693b534530a4af803152e9 /system/lua5.3/APKBUILD | |
parent | a63cc05c53a6f4c22422dc8c69808b14d87a6f6e (diff) | |
parent | da5a69b65a8791fffa6e93366ee585f87eff136d (diff) | |
download | packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.gz packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.bz2 packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.xz packages-9297468fa579836e3a6a381b798feb6b78217c2d.zip |
Merge branch 'master' into zfs
Diffstat (limited to 'system/lua5.3/APKBUILD')
-rw-r--r-- | system/lua5.3/APKBUILD | 18 |
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/ } |