diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-30 01:37:41 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-01 11:05:02 +0100 |
commit | a77d089bc9df46c5e0623a36c66868693828b897 (patch) | |
tree | 7ff222cf92cba0d6fe4c86be70b7cd4ea363f948 /main/lua5.1 | |
parent | 6c7e83f3a76feba3e459fc9d5366c535fc1588b7 (diff) | |
download | aports-a77d089bc9df46c5e0623a36c66868693828b897.tar.bz2 aports-a77d089bc9df46c5e0623a36c66868693828b897.tar.xz |
main/lua: merge into main/lua5.1
Diffstat (limited to 'main/lua5.1')
-rw-r--r-- | main/lua5.1/APKBUILD | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/main/lua5.1/APKBUILD b/main/lua5.1/APKBUILD index 3630b0fb05..cb11b99833 100644 --- a/main/lua5.1/APKBUILD +++ b/main/lua5.1/APKBUILD @@ -3,13 +3,14 @@ pkgname=lua5.1 _pkgname=lua pkgver=5.1.5 _luaver=${pkgname#lua} -pkgrel=4 +pkgrel=5 pkgdesc="A powerful light-weight programming language designed for extending applications." url="https://www.lua.org/" arch="all" license="MIT" depends_dev="$pkgname" makedepends="libtool autoconf automake" +provides="lua" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="https://www.lua.org/ftp/lua-$pkgver.tar.gz lua-5.1-make.patch @@ -73,15 +74,29 @@ package() { install -D -m 644 etc/lua.pc "$pkgdir"/usr/lib/pkgconfig/lua$_luaver.pc install -D -m 644 doc/lua.1 "$pkgdir"/usr/share/man/man1/lua$_luaver.1 install -D -m 644 doc/luac.1 "$pkgdir"/usr/share/man/man1/luac$_luaver.1 + + # Create symlinks without version suffix. + ln -s lua$_luaver "$pkgdir"/usr/bin/lua + ln -s luac$_luaver "$pkgdir"/usr/bin/luac + ln -s lua$_luaver.pc "$pkgdir"/usr/lib/pkgconfig/lua.pc + ln -s lua$_luaver.1 "$pkgdir"/usr/share/man/man1/lua.1 + ln -s luac$_luaver.1 "$pkgdir"/usr/share/man/man1/luac.1 } dev() { default_dev + provides="lua-dev" replaces="lua-dev" } +doc() { + default_doc + provides="lua-doc" +} + libs() { pkgdesc="Lua dynamic library runtime" + provides="lua-libs" replaces="lua lua-libs" mkdir -p "$subpkgdir"/usr |