new: migrate more packages

This commit is contained in:
ngn
2024-07-24 22:09:01 +03:00
parent 07d499fef5
commit a7dfd49ab5
36 changed files with 380 additions and 0 deletions

3
src/libinih/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/libinih/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 58
First version

30
src/libinih/pkg.sh Normal file
View File

@ -0,0 +1,30 @@
# general info
NAME="libinih"
DESC="Simple .INI file parser in C"
VERSION="58"
# required files
FILES=("https://github.com/benhoyt/inih/archive/refs/tags/r${VERSION}.tar.gz")
HASHES=("e79216260d5dffe809bda840be48ab0eec7737b2bb9f02d2275c1b46344ea7b7")
# install and build depends
DEPENDS=("gcc-libs" "glibc")
BUILD=("meson" "ninja")
build(){
tar xf "r${VERSION}.tar.gz"
cd "inih-r${VERSION}"
mkdir build
cd build
meson setup -Ddefault_library=shared \
-Dmax_line_length=1000 \
-Ddistro_install=true \
-Dwith_INIReader=true \
--prefix=/usr --buildtype=release ..
ninja
DESTDIR="${ROOTDIR}" ninja install
cd ../.. && rm -r "inih-r${VERSION}"
}