blob: 3ebf0aafb7d0103b52dd59482dbf09bb9e62fa79 (
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
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2-utils eutils xdg desktop
MY_PN="${PN/-bin/}"
DESCRIPTION="A messaging app for teams"
HOMEPAGE="https://radegast.life"
SRC_URI="https://bitbucket.org/cinderblocks/radegast/downloads/Radegast-${PV}.tbz -> ${MY_PN}-${PV}.tar.bz2"
LICENSE="BSD"
RESTRICT="mirror"
SLOT="0"
KEYWORDS="~amd64 -*"
IUSE=""
QA_PREBUILT="opt/${PN}/*"
DEPEND=""
RDEPEND="
dev-dotnet/libgdiplus[cairo]
dev-lang/mono
media-libs/fmod
"
S=${WORKDIR}/bin
src_prepare() {
rm license.txt
# Login error:
# Failed to initialize the sound system: System.DllNotFoundException: fmod
# at (wrapper managed-to-native) FMOD.Factory:FMOD_System_Create (intptr&) ...
rm libfmod.so libfmod.so.8 libfmodstudio.so libfmodstudio.so.8
ln -s libfmod.so.8.14 libfmod.so.8
ln -s libfmod.so.8.14 libfmod.so
ln -s libfmodstudio.so.8.14 libfmodstudio.so.8
ln -s libfmodstudio.so.8.14 libfmodstudio.so
eapply_user
}
src_install() {
doicon ${MY_PN}.png
mkdir -p "${D}/opt/${PN}/"
cp -pr . ${D}/opt/${PN}
make_wrapper "${PN}" "mono ./Radegast.exe" "/opt/${PN}" "/opt/${PN}:/opt/fmodex/api/lib"
make_desktop_entry "${PN}" "Radegast" "/usr/share/pixmaps/${MY_PN}.png"
}
pkg_preinst() {
xdg_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}
|