added libconfig package

This commit is contained in:
Alexander Zhirov 2024-03-14 18:57:34 +03:00
parent a745c18b7c
commit 1076eb2369
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# Description: C/C++ configuration file library.
# URL: https://github.com/hyperrealm/libconfig
# Maintainer: Alexander Zhirov
name=libconfig
version=1.7.3
release=1
source=(https://github.com/hyperrealm/libconfig/archive/v$version/$name-v$version.tar.gz)
build() {
cd $name-$version
autoreconf -fiv
# dont fail without makeinfo
# sed -i 's|all: all-am|all:|1' doc/Makefile.in
# sed -i 's|install: install-am|install:|1' doc/Makefile.in
./configure \
--prefix=/usr \
--disable-static \
--disable-examples
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/doc
}