new: migrate more packages
This commit is contained in:
3
src/libinih/.gitignore
vendored
Normal file
3
src/libinih/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
.cache/
|
||||
dist/
|
||||
root/
|
2
src/libinih/changes.md
Normal file
2
src/libinih/changes.md
Normal file
@ -0,0 +1,2 @@
|
||||
# 58
|
||||
First version
|
30
src/libinih/pkg.sh
Normal file
30
src/libinih/pkg.sh
Normal 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}"
|
||||
}
|
Reference in New Issue
Block a user