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

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

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

diff --git a/main/lua5.4/APKBUILD b/main/lua5.4/APKBUILD
index 4294e5c7..60bca05c 100644
--- a/main/lua5.4/APKBUILD
+++ b/main/lua5.4/APKBUILD
@@ -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 22:37:51 -0500

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

diff --git a/main/lua5.3/APKBUILD b/main/lua5.3/APKBUILD
index 9108df96..dd7b0e42 100644
--- a/main/lua5.3/APKBUILD
+++ b/main/lua5.3/APKBUILD
@@ -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 22:37:52 -0500

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

diff --git a/main/lua5.2/APKBUILD b/main/lua5.2/APKBUILD
index e5df9172..7bcfa911 100644
--- a/main/lua5.2/APKBUILD
+++ b/main/lua5.2/APKBUILD
@@ -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 22:37:53 -0500

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

diff --git a/main/lua5.1/APKBUILD b/main/lua5.1/APKBUILD
index 4c121f24..cb6ff557 100644
--- a/main/lua5.1/APKBUILD
+++ b/main/lua5.1/APKBUILD
@@ -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