aboutsummaryrefslogtreecommitdiff
blob: 5408a7e99ba4dd4d97a670c8d88acdf55862b6cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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_install(){
	cmake_src_install
	dolib.so "${BUILD_DIR}/libhyprlang.so" || die
	rm "${D}/usr/lib/libhyprlang.so"
}