diff options
author | gesang <gesang@itinerariummentis.org> | 2024-06-10 19:12:15 +0200 |
---|---|---|
committer | gesang <gesang@itinerariummentis.org> | 2024-06-10 19:12:15 +0200 |
commit | a92d773c5951c4dda7a0c39af60e8b71acf052bc (patch) | |
tree | f91e2fbdcb6fdd99702777c5fb9045f5d64e0506 /trilium-bin | |
parent | 3561672f1c52fec80191307a477c2d6e6543b4c5 (diff) |
trilium
Diffstat (limited to 'trilium-bin')
-rw-r--r-- | trilium-bin/template | 52 |
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 +} |