source: net-im/skypeforlinux/skypeforlinux-8.56.76.90.ebuild @ c8bb131

Revision c8bb131, 5.9 KB checked in by Mario Fetka <mario.fetka@…>, 5 months ago (diff)

Bump

  • Property mode set to 100644
Line 
1# Copyright 1999-2017 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=6
5
6MULTILIB_COMPAT=( abi_x86_64 )
7
8inherit pax-utils rpm multilib-build xdg-utils
9
10DESCRIPTION="Instant messaging client, with support for audio and video"
11HOMEPAGE="https://www.skype.com/"
12#SRC_URI="https://repo.skype.com/rpm/stable/${PN}_${PV}-1.x86_64.rpm"
13SRC_URI="https://repo.skype.com/rpm/unstable/${PN}_${PV}-1.x86_64.rpm"
14
15LICENSE="no-source-code MIT MIT-with-advertising BSD-1 BSD-2 BSD Apache-2.0 Boost-1.0 ISC CC-BY-SA-3.0 CC0-1.0 openssl ZLIB APSL-2 icu Artistic-2 LGPL-2.1"
16SLOT="0"
17KEYWORDS="~amd64"
18IUSE="pax_kernel"
19
20S="${WORKDIR}"
21QA_PREBUILT=opt/skypeforlinux/skypeforlinux
22QA_TEXTRELS=opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
23QA_EXECSTACK=opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
24RESTRICT="mirror bindist strip" #299368
25
26
27RDEPEND="
28        app-crypt/libsecret[${MULTILIB_USEDEP}]
29        dev-libs/atk[${MULTILIB_USEDEP}]
30        dev-libs/expat[${MULTILIB_USEDEP}]
31        dev-libs/glib:2[${MULTILIB_USEDEP}]
32        dev-libs/nspr[${MULTILIB_USEDEP}]
33        dev-libs/nss[${MULTILIB_USEDEP}]
34        gnome-base/gconf:2[${MULTILIB_USEDEP}]
35        media-libs/alsa-lib[${MULTILIB_USEDEP}]
36        media-libs/fontconfig:1.0[${MULTILIB_USEDEP}]
37        media-libs/freetype:2[${MULTILIB_USEDEP}]
38        media-libs/libv4l[${MULTILIB_USEDEP}]
39        net-print/cups[${MULTILIB_USEDEP}]
40        sys-apps/dbus[${MULTILIB_USEDEP}]
41        sys-devel/gcc[cxx]
42        virtual/ttf-fonts
43        x11-libs/cairo[${MULTILIB_USEDEP}]
44        x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
45        x11-libs/gtk+:2[${MULTILIB_USEDEP}]
46        x11-libs/libX11[${MULTILIB_USEDEP}]
47        x11-libs/libXScrnSaver[${MULTILIB_USEDEP}]
48        x11-libs/libXcomposite[${MULTILIB_USEDEP}]
49        x11-libs/libXcursor[${MULTILIB_USEDEP}]
50        x11-libs/libXdamage[${MULTILIB_USEDEP}]
51        x11-libs/libXext[${MULTILIB_USEDEP}]
52        x11-libs/libXfixes[${MULTILIB_USEDEP}]
53        x11-libs/libXi[${MULTILIB_USEDEP}]
54        x11-libs/libXrandr[${MULTILIB_USEDEP}]
55        x11-libs/libXrender[${MULTILIB_USEDEP}]
56        x11-libs/libXtst[${MULTILIB_USEDEP}]
57        x11-libs/libxcb[${MULTILIB_USEDEP}]
58        x11-libs/libxkbfile[${MULTILIB_USEDEP}]
59        x11-libs/pango[${MULTILIB_USEDEP}]"
60
61src_unpack() {
62        rpm_src_unpack ${A}
63}
64
65src_prepare() {
66        default
67        sed -e "s!^SKYPE_PATH=.*!SKYPE_PATH=${EPREFIX}/opt/skypeforlinux/skypeforlinux!" \
68                -i usr/bin/skypeforlinux || die
69        sed -e "s!^Exec=/usr/bin/skypeforlinux!Exec=${EPREFIX}/opt/bin/skypeforlinux!" \
70                -e "s!^Categories=.*!Categories=Network;InstantMessaging;Telephony;!" \
71                -e "/OnlyShowIn=.*/d" \
72                -i usr/share/applications/skypeforlinux.desktop || die
73}
74
75src_install() {
76        insinto /opt/skypeforlinux/locales
77        doins usr/share/skypeforlinux/locales/*.pak
78
79        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/cld/build/Release
80        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/cld/build/Release/cld.node
81
82        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/@felixrieseberg/spellchecker/build/Release
83        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/@felixrieseberg/spellchecker/build/Release/spellchecker.node
84
85        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/desktop-idle/build/Release
86        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/desktop-idle/build/Release/desktopIdle.node
87
88        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/electron-ssid/build/Release
89        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/electron-ssid/build/Release/electron-ssid.node
90
91        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release
92        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/keyboard-layout/build/Release/keyboard-layout-manager.node
93
94        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/keytar/build/Release
95        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node
96
97        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin
98        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/*.node
99
100        insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/sqlite3/lib/binding
101        doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/sqlite3/lib/binding/node_sqlite3.node
102
103        insinto /opt/skypeforlinux/resources
104        doins usr/share/skypeforlinux/resources/*.asar
105
106        insinto /opt/skypeforlinux
107        doins usr/share/skypeforlinux/*.pak
108        doins usr/share/skypeforlinux/*.bin
109        doins usr/share/skypeforlinux/*.dat
110        doins usr/share/skypeforlinux/version
111        exeinto /opt/skypeforlinux
112        doexe usr/share/skypeforlinux/*.so
113        doexe usr/share/skypeforlinux/skypeforlinux
114
115        into /opt
116        dobin usr/bin/skypeforlinux
117
118        dodoc usr/share/skypeforlinux/*.html
119        dodoc -r usr/share/doc/skypeforlinux/.
120        # symlink required for the "Help->3rd Party Notes" menu entry  (otherwise frozen skype -> xdg-open)
121        dosym ${P} usr/share/doc/skypeforlinux
122
123        # compat symlink for skypeforlinux bin autocreate autostart desktop file
124        dosym ../../opt/bin/skypeforlinux usr/bin/skypeforlinux
125
126        doicon usr/share/pixmaps/skypeforlinux.png
127
128        local res
129        # no 1024 at the moment
130        for res in 16 32 256 512; do
131                newicon -s ${res} usr/share/icons/hicolor/${res}x${res}/apps/skypeforlinux.png skypeforlinux.png
132        done
133
134        domenu usr/share/applications/skypeforlinux.desktop
135
136        if use pax_kernel; then
137                pax-mark -Cm "${ED%/}"/opt/skypeforlinux/skypeforlinux
138                pax-mark -Cm "${ED%/}"/opt/skypeforlinux/resources/app.asar.unpacked/node_modules/slimcore/bin/slimcore.node
139                eqawarn "You have set USE=pax_kernel meaning that you intend to run"
140                eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
141                eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
142                eqawarn "you suspect that ${PN} is being broken by this modification,"
143                eqawarn "please open a bug."
144        fi
145}
146
147pkg_postinst() {
148        xdg_desktop_database_update
149        xdg_mimeinfo_database_update
150}
151
152pkg_postrm() {
153        xdg_desktop_database_update
154        xdg_mimeinfo_database_update
155}
Note: See TracBrowser for help on using the repository browser.