blob: bd8d825fcf08f0ff259e8914d29de9a7eaec2eaf (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Template file for 'trilium-server-bin'
pkgname=trilium-server-bin
version=0.63.7
revision=1
archs="x86_64"
#build_wrksrc=
#build_style=gnu-configure
#configure_args=""
#make_build_args=""
#make_install_args=""
#conf_files=""
#make_dirs="/var/log/dir 0755 root root"
hostmakedepends=""
makedepends=""
depends="alsa-lib libXScrnSaver nss gtk+3"
short_desc="Trilium server"
maintainer="gesang <gesang@itinerariummentis.org>"
license="MPL-2.0"
homepage="https://github.com/zadam/trilium"
nostrip=true
#changelog=""
distfiles=https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz
checksum=6ba6d70a31fada5744d7e3bbd8dded9d01c425f3214c4304b92dd51ad9b96842
do_install(){
_name="trilium-server"
mkdir -p ${DESTDIR}/opt/${_name}
mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/usr/share/applications
cp -r ${wrksrc}/* ${DESTDIR}/opt/${_name}
install -Dvm644 /dev/stdin ${DESTDIR}/usr/share/applications/${_name}.desktop <<END
[Desktop Entry]
Name=Trilium Server
Comment=A hierarchical note taking application with focus on building large personal knowledge bases
GenericName=Note
Keywords=Notebook
Exec=/opt/trilium-server/trilium-server
StartupWMClass=trilium-server
Terminal=false
X-MultipleArgs=true
Type=Application
Icon=$pkgname
Categories=
MimeType=
StartupNotify=true
Actions=
END
install -Dvm755 /dev/stdin ${DESTDIR}/usr/bin/{pkgname%-bin} <<END
#!/bin/sh
PWD=$(pwd)
cd /opt/trilium-server
./trilium.sh
cd ${PWD}
END
}
|