blob: 44c3be418e72db1bc655daf18cd2d4096723a483 (
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.58.8
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=('364a34303ae449e68c56d3340c7ad9d2481bcc5ddf186d86fa94f024d525d48390f41dfc9820368e68a1f1c46f740acdabb4920d829a4f52da2e00a1afd1b252'
'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}"
}
|