dev-libs/lygia: new package, add 1.3.0

Signed-off-by: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
This commit is contained in:
Nguyen Dinh Dang Duong
2025-07-11 05:12:26 +07:00
parent 94263339a3
commit 5bdc9404eb
4 changed files with 58 additions and 0 deletions

1
dev-libs/lygia/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST lygia-1.3.0.tar.gz 413934 BLAKE2B 5b9662210b3e610c1a78d7b287c236d0193efcb49cd3fdf1d014f179dbd0dd3c3cb462ed2ca0c36b5bdb291341e5cf7a522134a64c7698b431d5f050a5260e63 SHA512 e9b1e81149bb3d6cba32b3dc977b09c6fc6e98cf1ad812ee0367745b3ec88d30befc047373bcaa7f8e01add78b40a2676656335823d233859eb825eb6a8dbe34

View File

@@ -0,0 +1,7 @@
install_dir=@INSTALL_DIR@
Name: LYGIA Shader Library
Description: LYGIA is a shader library of reusable functions that will let you prototype, port or ship a project in just few minutes.
Version: @VERSION@
Cflags: -I${install_dir}

View File

@@ -0,0 +1,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="~*"
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}
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>dangduong31205@gmail.com</email>
<name>Nguyen Dinh Dang Duong</name>
</maintainer>
<upstream>
<remote-id type="github">patriciogonzalezvivo/lygia</remote-id>
</upstream>
</pkgmetadata>