diff options
author | gesang <gesang@itinerariummentis.org> | 2024-06-11 21:12:14 +0200 |
---|---|---|
committer | gesang <gesang@itinerariummentis.org> | 2024-06-11 21:12:14 +0200 |
commit | 796376207b9cae307e434e9f59bc64dffbdf6522 (patch) | |
tree | 9da999eb05581eb9d68d9c6e6403e4c38d33357f /trilium-server-bin | |
parent | 4ac219d9aaae490b363b40e0fe3a579534deef30 (diff) |
Diffstat (limited to 'trilium-server-bin')
-rw-r--r-- | trilium-server-bin/template | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/trilium-server-bin/template b/trilium-server-bin/template new file mode 100644 index 0000000..bd8d825 --- /dev/null +++ b/trilium-server-bin/template @@ -0,0 +1,58 @@ +# Template file for 'trilium-server-bin' +pkgname=trilium-server-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="Trilium server" +maintainer="gesang <gesang@itinerariummentis.org>" +license="MPL-2.0" +homepage="https://github.com/zadam/trilium" +nostrip=true +#changelog="" +distfiles=https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz +checksum=6ba6d70a31fada5744d7e3bbd8dded9d01c425f3214c4304b92dd51ad9b96842 + +do_install(){ + _name="trilium-server" + mkdir -p ${DESTDIR}/opt/${_name} + mkdir -p ${DESTDIR}/usr/bin + mkdir -p ${DESTDIR}/usr/share/applications + cp -r ${wrksrc}/* ${DESTDIR}/opt/${_name} + + install -Dvm644 /dev/stdin ${DESTDIR}/usr/share/applications/${_name}.desktop <<END +[Desktop Entry] +Name=Trilium Server +Comment=A hierarchical note taking application with focus on building large personal knowledge bases +GenericName=Note +Keywords=Notebook +Exec=/opt/trilium-server/trilium-server +StartupWMClass=trilium-server +Terminal=false +X-MultipleArgs=true +Type=Application +Icon=$pkgname +Categories= +MimeType= +StartupNotify=true +Actions= + +END + + install -Dvm755 /dev/stdin ${DESTDIR}/usr/bin/{pkgname%-bin} <<END +#!/bin/sh +PWD=$(pwd) +cd /opt/trilium-server +./trilium.sh +cd ${PWD} +END +} |