dev-libs/hyprlang: fix pkgconf generated file

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu 2024-01-06 21:51:56 +02:00
parent 635f5657d2
commit 0803e82422
No known key found for this signature in database
GPG Key ID: 0CE5A97D9310DAB0

View File

@ -0,0 +1,25 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Official implementation library for the hypr config language"
HOMEPAGE="https://github.com/hyprwm/hyprlang"
SRC_URI="https://github.com/hyprwm/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
BUILD_DIR="${S}/build"
src_prepare() {
default
sed "s/\<lib\>/$(get_libdir)/" -i CMakeLists.txt hyprlang.pc.in
cmake_src_prepare
}