-
-
Notifications
You must be signed in to change notification settings - Fork 414
/
qownnotes.ebuild
76 lines (62 loc) · 1.66 KB
/
qownnotes.ebuild
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright 2014-2021 Patrizio Bekerle
# Distributed under the terms of the GNU General Public License v2
# $Id$
#
# QOwnNotes VERSION-STRING
#
EAPI=7
inherit qmake-utils desktop xdg-utils
DESCRIPTION="A plain-text file markdown note taking with Nextcloud/ownCloud integration"
HOMEPAGE="https://www.qownnotes.org/"
SRC_URI="https://github.com/pbek/QOwnNotes/releases/download/vVERSION-STRING/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="
dev-qt/qtwidgets:5
dev-qt/qtgui:5
dev-qt/qtcore:5
dev-qt/qtconcurrent:5
dev-qt/qtsql:5
dev-qt/qtsvg:5
dev-qt/qtnetwork:5
dev-qt/qtdeclarative:5
dev-qt/qtxml:5
dev-qt/qtprintsupport:5
dev-qt/qtwebsockets:5
dev-qt/qtx11extras:5
"
RDEPEND="${DEPEND}"
src_prepare() {
echo "#define RELEASE \"Gentoo\"" > release.h
default
}
src_compile() {
eqmake5 QOwnNotes.pro -r
}
src_install() {
emake
dobin QOwnNotes
dodir /usr/share/qt5/translations
insinto /usr/share/qt5/translations
doins languages/*.qm
insinto /usr/share/applications
doicon -s 128 "images/icons/128x128/apps/QOwnNotes.png"
doicon -s 16 "images/icons/16x16/apps/QOwnNotes.png"
doicon -s 24 "images/icons/24x24/apps/QOwnNotes.png"
doicon -s 256 "images/icons/256x256/apps/QOwnNotes.png"
doicon -s 32 "images/icons/32x32/apps/QOwnNotes.png"
doicon -s 48 "images/icons/48x48/apps/QOwnNotes.png"
doicon -s 512 "images/icons/512x512/apps/QOwnNotes.png"
doicon -s 64 "images/icons/64x64/apps/QOwnNotes.png"
doicon -s 96 "images/icons/96x96/apps/QOwnNotes.png"
doicon -s scalable "images/icons/scalable/apps/QOwnNotes.svg"
doins PBE.QOwnNotes.desktop
}
pkg_postinst() {
xdg_icon_cache_update
}
pkg_postrm() {
xdg_icon_cache_update
}