blob: 495775c5ea1dcda353b4e7918468e42b4560f1c3 (
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.5
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=('77808e23761432fc54c50c5ef0a2e1f661d881fe42054e59be2dfb248c15645959907bf0ddab553e6827cf6b3d0af3d190549c999ce3ab1cf1e7d83448cedf5a'
'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}"
}
|