mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
Closes: https://bugs.gentoo.org/913681
Upstream-PR: https://github.com/oco2000/xfce4-kbdleds-plugin/pull/10
Ustream-Commit: 190434d678
Signed-off-by: orbea <orbea@riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/35806
Signed-off-by: Michał Górny <mgorny@gentoo.org>
58 lines
1.0 KiB
Bash
58 lines
1.0 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools xdg-utils
|
|
|
|
DESCRIPTION="A panel plug-in to show state of Caps, Num and Scroll Lock keys"
|
|
HOMEPAGE="https://github.com/oco2000/xfce4-kbdleds-plugin"
|
|
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~riscv ~x86"
|
|
|
|
DEPEND="
|
|
xfce-base/libxfce4ui:=
|
|
xfce-base/libxfce4util:=
|
|
xfce-base/xfce4-panel
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
"
|
|
BDEPEND="
|
|
dev-util/intltool
|
|
sys-devel/gettext
|
|
virtual/pkgconfig
|
|
"
|
|
# for eautoreconf
|
|
BDEPEND+="
|
|
dev-build/xfce4-dev-tools
|
|
"
|
|
|
|
PATCHES=(
|
|
# https://github.com/oco2000/xfce4-kbdleds-plugin/pull/7
|
|
"${FILESDIR}/${P}-xfce-4.16.patch"
|
|
# https://github.com/oco2000/xfce4-kbdleds-plugin/pull/10
|
|
"${FILESDIR}/${P}-x11-libs.patch" #913681
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
find "${D}" -name '*.la' -delete || die
|
|
}
|
|
|
|
pkg_postinst() {
|
|
xdg_icon_cache_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
xdg_icon_cache_update
|
|
}
|