blob: 75518a10684d2b9aeaeea2eaf277d8f2e03368b0 (
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
|
# Template file for 'trilium-bin'
pkgname=trilium-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="Mercury Browser"
maintainer="gesang <gesang@itinerariummentis.org>"
license="MPL-2.0"
homepage="https://thorium.rocks/mercury"
#changelog=""
distfiles=https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz
checksum=1bcbf40aa76be5c74e045cd8107c0ed447c7fd3fb8318075afe68bfe370fa3a7
do_install(){
cd ${wrksrc}
install -Dvm644 /dev/stdin ${wrksrc}/${pkgname}.desktop <<END
[Desktop Entry]
Version=${version}
Name=Trilium Notebook
Comment=Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases
GenericName=Note
Keywords=Notebook
Exec=/opt/${pkgname}
StartupWMClass=trilium-bin
Terminal=false
X-MultipleArgs=true
Type=Application
Icon=$pkgname
Categories=
MimeType=
StartupNotify=true
Actions=
END
mkdir -p ${DESTDIR}/opt/${pkgname}
mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/usr/share/applications
cp -r ${wrksrc}/* ${DESTDIR}/opt/${pkgname}
cp -r ${wrksrc}/${pkgname}.desktop ${DESTDIR}/usr/share/applications/${pkgname}.desktop
ln -s /opt/${pkgname}/trilium ${DESTDIR}/usr/bin/trilium
}
|