summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitris Kiziridis2020-07-20 08:30:04 +0300
committerDimitris Kiziridis2020-07-20 08:30:04 +0300
commit00f84b30892edf505e2fbab63844daeda1eacdb1 (patch)
treecc9690c7aef36449b35b632d343025a31b1d1200
downloadaur-00f84b30892edf505e2fbab63844daeda1eacdb1.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0791899e969
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = skydocs
+ pkgdesc = A lightweight static documentation builder with MarkDown
+ pkgver = 0.7.4
+ pkgrel = 1
+ url = https://skydocs.skyost.eu
+ arch = any
+ license = GPL3
+ makedepends = gendesk
+ depends = java-runtime>=8
+ depends = bash
+ source = skydocs-0.7.4.zip::https://github.com/Skyost/SkyDocs/releases/download/v0.7.4/SkyDocs.Jar.zip
+ sha256sums = 1780bfce67e1f4fad14aa500fa2df6c96cd3c3b34d7c2bb4beee93ebc45a6445
+
+pkgname = skydocs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5c092b27087
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
+
+pkgname=skydocs
+pkgver=0.7.4
+pkgrel=1
+pkgdesc="A lightweight static documentation builder with MarkDown"
+arch=('any')
+url='https://skydocs.skyost.eu'
+license=('GPL3')
+depends=('java-runtime>=8' 'bash')
+makedepends=('gendesk')
+source=("${pkgname}-${pkgver}.zip::https://github.com/Skyost/SkyDocs/releases/download/v${pkgver}/SkyDocs.Jar.zip")
+sha256sums=('1780bfce67e1f4fad14aa500fa2df6c96cd3c3b34d7c2bb4beee93ebc45a6445')
+
+package() {
+ install -Dm644 SkyDocs-v${pkgver}.jar "${pkgdir}/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar"
+ echo "#!/usr/bin/env bash
+ exec /usr/bin/java -jar '/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar' "\$\@"" > skydocs.sh
+ install -Dm755 skydocs.sh "${pkgdir}/usr/bin/skydocs"
+ jar xf SkyDocs-v${pkgver}.jar main/resources/default_theme/assets/img/icon.png
+ install -Dm644 main/resources/default_theme/assets/img/icon.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ gendesk -f -n --pkgname "${pkgname}" \
+ --pkgdesc "$pkgdesc" \
+ --name "SkyDocs" \
+ --comment "$pkgdesc" \
+ --exec "${pkgname}" \
+ --categories 'Utility;Development;Application' \
+ --icon "${pkgname}"
+ install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
+} \ No newline at end of file