You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
4 years ago
|
inherit gnome2-utils
|
||
5 years ago
|
|
||
|
DESCRIPTION="Allow to connect bluetooth paired devices from gnome control panel"
|
||
|
HOMEPAGE="https://github.com/bjarosze/gnome-bluetooth-quick-connect"
|
||
|
SRC_URI="https://github.com/bjarosze/gnome-bluetooth-quick-connect/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
5 years ago
|
IUSE=""
|
||
|
|
||
4 years ago
|
RDEPEND="
|
||
5 years ago
|
net-wireless/bluez
|
||
|
app-eselect/eselect-gnome-shell-extensions
|
||
4 years ago
|
>=gnome-base/gnome-shell-3.38
|
||
5 years ago
|
"
|
||
|
DEPEND="${COMMON_DEPEND}"
|
||
|
BDEPEND=""
|
||
|
|
||
|
S="${WORKDIR}/${P/shell-extension-}"
|
||
|
|
||
|
src_install() {
|
||
|
einstalldocs
|
||
4 years ago
|
insinto /usr/share/glib-2.0/schemas
|
||
|
doins schemas/*.xml
|
||
|
rm -rf README.md LICENSE Makefile schemas || die
|
||
5 years ago
|
insinto /usr/share/gnome-shell/extensions/bluetooth-quick-connect@bjarosze.gmail.com
|
||
|
doins -r *
|
||
4 years ago
|
dosym ../../../../../usr/share/glib-2.0/schemas /usr/share/gnome-shell/extensions/bluetooth-quick-connect@bjarosze.gmail.com/schemas
|
||
4 years ago
|
}
|
||
|
|
||
|
pkg_preinst() {
|
||
|
gnome2_schemas_savelist
|
||
5 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
4 years ago
|
gnome2_schemas_update
|
||
5 years ago
|
ebegin "Updating list of installed extensions"
|
||
|
eselect gnome-shell-extensions update
|
||
|
eend $?
|
||
|
}
|
||
4 years ago
|
|
||
|
pkg_postrm() {
|
||
|
gnome2_schemas_update
|
||
|
}
|