c0f1c95db975ebc6d3a398ef897c2a0d2e41eafb
[gentoo.git] /
1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=7
5
6 DESCRIPTION="Allow to connect bluetooth paired devices from gnome control panel"
7 HOMEPAGE="https://github.com/bjarosze/gnome-bluetooth-quick-connect"
8 SRC_URI="https://github.com/bjarosze/gnome-bluetooth-quick-connect/archive/v${PV}.tar.gz -> ${P}.tar.gz"
9
10 LICENSE="GPL-3"
11 SLOT="0"
12 KEYWORDS="~amd64 ~x86"
13 IUSE=""
14
15 # glib for glib-compile-schemas at build time, needed at runtime anyways
16 COMMON_DEPEND="
17         dev-libs/glib:2
18 "
19 RDEPEND="${COMMON_DEPEND}
20         net-wireless/bluez
21         app-eselect/eselect-gnome-shell-extensions
22         >=gnome-base/gnome-shell-3.26.2
23 "
24 DEPEND="${COMMON_DEPEND}"
25 BDEPEND=""
26
27 S="${WORKDIR}/${P/shell-extension-}"
28
29 PATCHES=(
30         "${FILESDIR}"/${P}-3.34.patch
31 )
32
33 src_install() {
34         einstalldocs
35         rm -f README.md LICENSE Makefile || die
36         insinto /usr/share/gnome-shell/extensions/bluetooth-quick-connect@bjarosze.gmail.com
37         doins -r *
38         glib-compile-schemas "${ED}"/usr/share/gnome-shell/extensions/bluetooth-quick-connect@bjarosze.gmail.com/schemas || die
39 }
40
41 pkg_postinst() {
42         ebegin "Updating list of installed extensions"
43         eselect gnome-shell-extensions update
44         eend $?
45 }