blob: a3b5c95aab948b71bc378541ab3120bee88ee20f (
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
59
60
61
62
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit unpacker desktop xdg optfeature
DESCRIPTION="Linux SDL/ImGui edition software for viewing .brd files"
HOMEPAGE="https://openboardview.org"
SRC_URI="https://github.com/OpenBoardView/OpenBoardView/releases/download/${PV}/openboardview_${PV}-1_amd64.deb"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip test"
QA_PREBUILT="
usr/bin/*
"
RDEPEND="
dev-db/sqlite:3
dev-libs/glib
media-libs/fontconfig
media-libs/freetype
media-libs/libsdl2
virtual/zlib:0/1
x11-libs/gtk+:3
"
src_unpack() {
unpacker_src_unpack
}
src_install() {
# install the primary executable
dobin "${S}"/usr/bin/openboardview
# install desktop entry
domenu "${S}"/usr/share/applications/openboardview.desktop
# install application icon
doicon -s scalable "${S}"/usr/share/icons/hicolor/scalable/apps/openboardview.svg
# install metainfo and mimetype files
insinto /usr/share/metainfo
doins "${S}"/usr/share/metainfo/openboardview.appdata.xml
insinto /usr/share/mime/packages
doins "${S}"/usr/share/mime/packages/openboardview.xml
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "converting legacy Microsoft Access-based .bv files via the bvconv.sh script" app-office/mdbtools
}
pkg_postrm() {
xdg_pkg_postrm
}
|