blob: 70c95196661041298467ce1d749d5c7b6f120187 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: Vladimir Navrat <vn158 at seznam dot cz>
pkgname="trilium-server-bin"
pkgver=0.45.10
pkgrel=1
pkgdesc="A hierarchical note taking application built on modern technologies (server only)."
depends=('libxss' 'nss')
arch=('x86_64')
url="https://github.com/zadam/trilium"
license=('AGPL3')
source=("https://github.com/zadam/trilium/releases/download/v$pkgver/trilium-linux-x64-server-$pkgver.tar.xz" "${pkgname%-bin}")
sha512sums=('1cba02fc439c3058dbd2f91aef8eb435a709172b00b7ca3072b98fd0a04b3edf4f8dbc4c28f6c4243bd85b2b821249a354b77bd2c439708cb0d63947da907def'
'758b923c312ff039a2653d9743e5f3d5bb74f57f83c0fc837a4d17f263437c419d3bd975d86f2067e80dbb579b6599fea428edd3ead47d25b09765cf5f54174c')
package()
{
# Make folders for extraction
mkdir -p "$pkgdir/opt/${pkgname%-bin}"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/applications"
# Move main files
mv trilium-linux-x64-server/* "$pkgdir/opt/${pkgname%-bin}"
# Create command and make it executable
cp "${pkgname%-bin}" "$pkgdir/usr/bin/${pkgname%-bin}"
chmod 0755 "$pkgdir/usr/bin/${pkgname%-bin}"
}
|