aboutsummaryrefslogtreecommitdiffstats
path: root/testing/novnc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/novnc/APKBUILD')
-rw-r--r--testing/novnc/APKBUILD38
1 files changed, 22 insertions, 16 deletions
diff --git a/testing/novnc/APKBUILD b/testing/novnc/APKBUILD
index c952fb82a3..a17168d2fb 100644
--- a/testing/novnc/APKBUILD
+++ b/testing/novnc/APKBUILD
@@ -16,23 +16,29 @@ builddir="$srcdir/$_pkgname-$pkgver"
options="!check"
package() {
- mkdir -p "$pkgdir"/usr/share/novnc
- cp -r "$builddir"/* "$pkgdir"/usr/share/novnc
- # Clean up package
- rm "$pkgdir"/usr/share/novnc/CONTRIBUTING.md
- rm "$pkgdir"/usr/share/novnc/utils/README.md
- # Move license files
- mkdir -p "$pkgdir"/usr/share/licenses/novnc
- mv "$pkgdir"/usr/share/novnc/LICENSE.txt "$pkgdir"/usr/share/licenses/novnc
- mv "$pkgdir"/usr/share/novnc/docs/LICENSE.* "$pkgdir"/usr/share/licenses/novnc
- # Move documentation
+ mkdir -p "$pkgdir"/usr/share/$pkgname
+ cd "$pkgdir"/usr/share/$pkgname
+
+ cp -r "$builddir"/* .
+
+ # Clean up package.
+ rm CONTRIBUTING.md utils/README.md
+
+ # Move license files.
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+ mv LICENSE.txt docs/LICENSE.* "$pkgdir"/usr/share/licenses/novnc/
+
+ # Move documentation.
mkdir -p "$pkgdir"/usr/share/doc
- mv "$pkgdir"/usr/share/novnc/docs "$pkgdir"/usr/share/doc/novnc
- mv "$pkgdir"/usr/share/novnc/README.md "$pkgdir"/usr/share/doc/novnc
- # Add launch.sh to /usr/bin
- mkdir -p "$pkgdir"/usr/bin
- ln -sf /usr/share/novnc/utils/launch.sh "$pkgdir"/usr/bin/novnc_server
+ mv docs "$pkgdir"/usr/share/doc/$pkgname
+ mv README.md "$pkgdir"/usr/share/doc/$pkgname/
+
+ # Install launch.sh to /usr/bin.
+ install -D -m 755 utils/launch.sh "$pkgdir"/usr/bin/novnc_server
+
+ # Remove irrelevant utils.
+ rm -r utils
}
sha512sums="245d205f8935c82722a55d6cfcd2cea1825176c0cd695fd0eec34aa19cdc3b766fed62e741ff41b0a8c4a3b3cbabc5a39dfa6ad8ffa6169f5b88420a4a845a7c novnc-0.6.2.tar.gz
-039abf940909767f93217832bb43dc3405613c9a0d0afa4f4d601c1c1d7459394e93fa9d8e5e880b8e65759e293c7da4cc586b73f2c981f50dcb6872093499bc alpine-specific-launch.js.patch"
+e3a444d8a8cbf742bc1299e229deb129bcb6045eef1aad20e8db066362db1da77a59130fdadfffffbc69a5cb4c5a929eb4d40382305dae5fc4ab5f09f9d9eef6 alpine-specific-launch.js.patch"