diff options
author | Nriver | 2024-01-08 09:31:13 +0800 |
---|---|---|
committer | Nriver | 2024-01-08 09:31:13 +0800 |
commit | 90e297af9995a8b89c51cc917991c051e9444e9a (patch) | |
tree | 36f973a339f0631337261b6aab2b955ea3aa4ab9 | |
download | aur-90e297af9995a8b89c51cc917991c051e9444e9a.tar.gz |
init commit
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rwxr-xr-x | rebuild.sh | 4 | ||||
-rw-r--r-- | trilium-server-cn.service | 11 | ||||
-rwxr-xr-x | trilium-server-cn.sh | 5 |
6 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..10351f8ac0f5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = trilium-server-cn-bin + pkgdesc = Trilium Notes Server Chinese version + pkgver = 0.62.4_20231222 + pkgrel = 1 + url = https://github.com/Nriver/trilium-translation + arch = x86_64 + license = AGPL3 + source = trilium-server-cn-0.62.4_20231222.zip::https://github.com/Nriver/trilium-translation/releases/download/v0.62.4_20231222/trilium-cn-linux-x64-server.zip + sha256sums = f426b398ca9925d549e61446a8f255cf9300fae4075a32ee24fe71f15d4e7879 + +pkgname = trilium-server-cn-bin diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b8232a7609ab --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg/* +src/* +trilium-cn-linux-x64-server.zip
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6eba4bb44a9a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Nriver <6752679+Nriver@users.noreply.github.com> +pkgname="trilium-server-cn-bin" +pkgver=0.62.4_20231222 +pkgrel=1 +pkgdesc="Trilium Notes Server Chinese version" +arch=('x86_64') +url="https://github.com/Nriver/trilium-translation" +license=('AGPL3') +source=("$pkgname-$pkgver.zip::https://github.com/Nriver/trilium-translation/releases/download/v$pkgver/trilium-cn-linux-x64-server.zip") +sha256sums=('f426b398ca9925d549e61446a8f255cf9300fae4075a32ee24fe71f15d4e7879') + +package() +{ + # 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-server/* "$pkgdir/opt/$pkgname" + # Create command and make it executable + install -vDm755 ../trilium-server-cn.sh "${pkgdir}/usr/bin/trilium-server-cn" + install -vDm644 ../trilium-server-cn.service -t "${pkgdir}/usr/lib/systemd/system" +} diff --git a/rebuild.sh b/rebuild.sh new file mode 100755 index 000000000000..43a594946634 --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,4 @@ +rm -rf src +rm -rf pkg +rm *.pkg.tar.zst +makepkg --printsrcinfo > .SRCINFO
\ No newline at end of file diff --git a/trilium-server-cn.service b/trilium-server-cn.service new file mode 100644 index 000000000000..5a6e40ecfa0b --- /dev/null +++ b/trilium-server-cn.service @@ -0,0 +1,11 @@ +[Unit] +Description=Trilium Notes server daemon +After=syslog.target network.target + +[Service] +Type=simple +ExecStart=/opt/trilium-server-cn/trilium.sh +WorkingDirectory=/opt/trilium-server-cn + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/trilium-server-cn.sh b/trilium-server-cn.sh new file mode 100755 index 000000000000..65cfaa7192af --- /dev/null +++ b/trilium-server-cn.sh @@ -0,0 +1,5 @@ +#!/bin/sh +PWD=$(pwd) +cd /opt/trilium-server-cn +./trilium.sh +cd ${PWD} |