blob: b51d0f282422c8c6a956e5c19ea8043dc2a1aea6 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="LYGIA is a shader library of reusable functions."
HOMEPAGE="
https://lygia.xyz
https://github.com/patriciogonzalezvivo/lygia"
SRC_URI="https://codeload.github.com/patriciogonzalezvivo/lygia/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"
LICENSE="Prosperity-3.0.0"
SLOT="0"
KEYWORDS="~amd64"
install_dir=/usr/include
pc_file=lygia.pc
src_prepare()
{
default
sed \
-e "s|@INSTALL_DIR@|${install_dir%%/}/|g" \
-e "s|@VERSION@|${PV}|g" \
"${FILESDIR}/${pc_file}.in" > ${pc_file} || die "sed failed"
}
src_install()
{
dodoc *.md
rm -f *.md
insinto ${install_dir}/${PN}
doins -r *
insinto /usr/lib64/pkgconfig
doins ${pc_file}
}
|