blob: 612e7be3c3b64004bf6029838b2a298de7999d29 (
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
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop xdg
DESCRIPTION="Free version of the FlexBV boardview and schematic software"
HOMEPAGE="https://pldaniels.com/flexbv5/"
SRC_URI="https://pldaniels.com/flexbv5/releases/flexbv-free-${PV}-linux-x86_64.tar.gz"
S="${WORKDIR}/flexbv-free-${PV}-linux-x86_64"
LICENSE="FlexBV-Free-EULA"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror test strip"
QA_PREBUILT="
usr/bin/flexbv
"
RDEPEND="
media-libs/fontconfig
media-libs/freetype
media-libs/libsdl2
virtual/zlib:0/1
virtual/opengl
"
src_install() {
# install binary
dobin flexbv
# install desktop file
domenu "${S}"/share/applications/flexbv.desktop
# install icon
doicon -s scalable "${S}"/share/icons/hicolor/scalable/apps/flexbv.svg
# install metainfo and mime files
insinto /usr/share/metainfo
doins "${S}"/share/appdata/flexbv.appdata.xml
insinto /usr/share/mime/packages
doins "${S}"/share/mime/packages/flexbv.xml
}
pkg_postinst() {
xdg_pkg_postinst
}
pkg_postrm() {
xdg_pkg_postrm
}
|