blob: 7c97042f148b1601b4b5052108676d1952aded84 (
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
26
27
|
# Maintainer: Vladimir Navrat <vn158 at seznam dot cz>
pkgname="trilium-server-bin"
pkgver=0.47.7
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}")
OPTIONS=(!strip)
sha512sums=('b4a49074c270392b6f7e72ddb0dff031cd62f806aa361e8bf1e3f73e1dfb7d7cef17be7ee79baca72c428cede6c9acf8436775bbaabc494b522357aca2030fb8'
'5137657683b83086e7985c1d75111b78a1760ce02e6cf8e8386477a01758fa511226de98ea4d817a52c8109116f002cdec9994e2eb5baef10fde2eaf2df42fb7')
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}"
}
|