Last active
March 13, 2024 15:36
-
-
Save kleutzinger/c61f89885a38adbd98e080663f653954 to your computer and use it in GitHub Desktop.
trilium 0.63.3 AUR PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Bryce Kabat <[email protected]> | |
pkgname="trilium-bin" | |
pkgver=0.63.3 | |
pkgrel=1 | |
pkgdesc="A hierarchical note taking application built on modern technologies." | |
depends=('libxss' 'nss' 'gtk3' 'alsa-lib') | |
arch=('x86_64') | |
url="https://github.com/zadam/trilium" | |
license=('AGPL3') | |
source=("https://github.com/zadam/trilium/releases/download/v$pkgver/trilium-linux-x64-$pkgver.tar.xz") | |
sha512sums=('a3261b9139edf5d5cd58ff11223c649b21330d21d3b47f25e8e6c9410f6949085709ff76288876120bf7534261a3a3c6602f575f3ef0b2b9d8f04a5d522cfec6') | |
package() | |
{ | |
export destdir="$pkgdir/" | |
# Make folders for extraction | |
mkdir -p "$pkgdir/opt/$pkgname" | |
mkdir -p "$pkgdir/usr/bin" | |
mkdir -p "$pkgdir/usr/share/applications" | |
# Move main files | |
mv trilium-linux-x64/* "$pkgdir/opt/$pkgname" | |
# Write command and make executable | |
echo -e "#!/bin/sh | |
/opt/$pkgname/trilium" > "$pkgdir/usr/bin/trilium" | |
# Create .desktop file | |
echo -e "[Desktop Entry] | |
Name=Trilium | |
GenericName=Note Taking Application | |
Comment=A hierarchical note taking application built on modern technologies. | |
Exec=trilium %f | |
Icon=/opt/$pkgname/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Office | |
StartupWMClass=trilium notes" > "$pkgdir/usr/share/applications/trilium-notes.desktop" | |
chmod -R 0755 "$pkgdir" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment