summaryrefslogtreecommitdiff
path: root/trilium-bin
diff options
context:
space:
mode:
Diffstat (limited to 'trilium-bin')
-rw-r--r--trilium-bin/template52
1 files changed, 52 insertions, 0 deletions
diff --git a/trilium-bin/template b/trilium-bin/template
new file mode 100644
index 0000000..75518a1
--- /dev/null
+++ b/trilium-bin/template
@@ -0,0 +1,52 @@
+# Template file for 'trilium-bin'
+pkgname=trilium-bin
+version=0.63.7
+revision=1
+archs="x86_64"
+#build_wrksrc=
+#build_style=gnu-configure
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends=""
+makedepends=""
+depends="alsa-lib libXScrnSaver nss gtk+3"
+short_desc="Mercury Browser"
+maintainer="gesang <gesang@itinerariummentis.org>"
+license="MPL-2.0"
+homepage="https://thorium.rocks/mercury"
+#changelog=""
+distfiles=https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz
+checksum=1bcbf40aa76be5c74e045cd8107c0ed447c7fd3fb8318075afe68bfe370fa3a7
+
+do_install(){
+ cd ${wrksrc}
+ install -Dvm644 /dev/stdin ${wrksrc}/${pkgname}.desktop <<END
+[Desktop Entry]
+Version=${version}
+Name=Trilium Notebook
+Comment=Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases
+GenericName=Note
+Keywords=Notebook
+Exec=/opt/${pkgname}
+StartupWMClass=trilium-bin
+Terminal=false
+X-MultipleArgs=true
+Type=Application
+Icon=$pkgname
+Categories=
+MimeType=
+StartupNotify=true
+Actions=
+
+END
+
+ mkdir -p ${DESTDIR}/opt/${pkgname}
+ mkdir -p ${DESTDIR}/usr/bin
+ mkdir -p ${DESTDIR}/usr/share/applications
+ cp -r ${wrksrc}/* ${DESTDIR}/opt/${pkgname}
+ cp -r ${wrksrc}/${pkgname}.desktop ${DESTDIR}/usr/share/applications/${pkgname}.desktop
+ ln -s /opt/${pkgname}/trilium ${DESTDIR}/usr/bin/trilium
+}