guru/gui-apps/wlopm/wlopm-1.0.0.ebuild
Ben Buhse 2630ef2dcf
gui-apps/wlopm: add 1.0.0, drop 0.1.0-r1
Signed-off-by: Ben Buhse <me@benbuhse.com>
2024-12-04 22:01:55 -06:00

42 lines
972 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="wlr-output-power-management-v1 client"
HOMEPAGE="https://git.sr.ht/~leon_plickat/wlopm/"
inherit bash-completion-r1 toolchain-funcs
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~leon_plickat/wlopm"
else
SRC_URI="https://git.sr.ht/~leon_plickat/wlopm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-v${PV}"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="GPL-3"
SLOT="0"
DEPEND="dev-libs/wayland"
RDEPEND="${DEPEND}"
BDEPEND="dev-util/wayland-scanner"
src_prepare() {
default
sed '/^CFLAGS/s/-Werror//' -i Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
# Makefile doesn't make sure this directory exists
# which is a problem when using PREFIX
install -d "${D}$(get_bashcompdir)"
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" BASHCOMPDIR="$(get_bashcompdir)" install
}