Subject: [PATCH v2 1/4] main/lua5.4: add HTML documentation

From: Sebastian <[email-masked]>
Date: Mon, 3 Jan 2022 23:24:37 -0500

Signed-off-by: Sebastian <[email-masked]>
---
 main/lua5.4/APKBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/main/lua5.4/APKBUILD b/main/lua5.4/APKBUILD
index 4294e5c7..23410007 100644
--- a/main/lua5.4/APKBUILD
+++ b/main/lua5.4/APKBUILD
@@ -3,7 +3,7 @@ pkgname=lua5.4
 _pkgname=lua
 pkgver=5.4.3
 _luaver=${pkgname#lua}
-pkgrel=0
+pkgrel=1
 pkgdesc="Powerful light-weight programming language"
 url="https://www.lua.org/"
 arch="all"
@@ -81,6 +81,10 @@ package() {
 	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
 
+	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+	install -m644 doc/*.html doc/*.css doc/logo.gif doc/osi-certified-72x60.png \
+		"$pkgdir"/usr/share/doc/$pkgname/
+
 	install -Dm644 "$srcdir"/lua5.4.pc -t "$pkgdir"/usr/lib/pkgconfig
 }
 
-- 
2.34.1

---

From: Sebastian <[email-masked]>
Date: Mon, 3 Jan 2022 23:24:38 -0500

Signed-off-by: Sebastian <[email-masked]>
---
 main/lua5.3/APKBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/main/lua5.3/APKBUILD b/main/lua5.3/APKBUILD
index 9108df96..86b2a189 100644
--- a/main/lua5.3/APKBUILD
+++ b/main/lua5.3/APKBUILD
@@ -3,7 +3,7 @@ pkgname=lua5.3
 _pkgname=lua
 pkgver=5.3.6
 _luaver=${pkgname#lua}
-pkgrel=1
+pkgrel=2
 pkgdesc="Powerful light-weight programming language"
 url="https://www.lua.org/"
 arch="all"
@@ -78,6 +78,10 @@ package() {
 	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
 
+	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+	install -m644 doc/*.html doc/*.css doc/logo.gif doc/osi-certified-72x60.png \
+		"$pkgdir"/usr/share/doc/$pkgname/
+
 	install -d "$pkgdir"/usr/lib/pkgconfig
 	cat > "$pkgdir"/usr/lib/pkgconfig/lua$_luaver.pc <<-EOF
 		# lua.pc -- pkg-config data for Lua
-- 
2.34.1

---

From: Sebastian <[email-masked]>
Date: Mon, 3 Jan 2022 23:24:39 -0500

Signed-off-by: Sebastian <[email-masked]>
---
 main/lua5.2/APKBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/main/lua5.2/APKBUILD b/main/lua5.2/APKBUILD
index e5df9172..1ca7caeb 100644
--- a/main/lua5.2/APKBUILD
+++ b/main/lua5.2/APKBUILD
@@ -2,7 +2,7 @@
 pkgname=lua5.2
 pkgver=5.2.4
 _luaver=${pkgname#lua}
-pkgrel=7
+pkgrel=8
 pkgdesc="Powerful light-weight programming language"
 url="https://www.lua.org/"
 arch="all"
@@ -85,6 +85,10 @@ package() {
 			"$pkgdir"/usr/share/man/man1/luac$_luaver.1 \
 		|| return 1
 
 	cat > "$pkgdir"/usr/lib/pkgconfig/lua$_luaver.pc <<EOF

---

From: Sebastian <[email-masked]>
Date: Mon, 3 Jan 2022 23:24:40 -0500

Signed-off-by: Sebastian <[email-masked]>
---
 main/lua5.1/APKBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/main/lua5.1/APKBUILD b/main/lua5.1/APKBUILD
index 4c121f24..58ef2b64 100644
--- a/main/lua5.1/APKBUILD
+++ b/main/lua5.1/APKBUILD
@@ -3,7 +3,7 @@ pkgname=lua5.1
 _pkgname=lua
 pkgver=5.1.5
 _luaver=${pkgname#lua}
-pkgrel=8
+pkgrel=9
 pkgdesc="A powerful light-weight programming language designed for extending applications."
 url="https://www.lua.org/"
 arch="all"
@@ -82,6 +82,10 @@ package() {
 	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
 
+	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
+	install -m644 doc/*.html doc/*.css doc/logo.gif doc/cover.png \
+		"$pkgdir"/usr/share/doc/$pkgname/
+
 	# Create symlinks without version suffix.
 	ln -s lua$_luaver "$pkgdir"/usr/bin/lua
 	ln -s luac$_luaver "$pkgdir"/usr/bin/luac
-- 
2.34.1