From 1076eb2369638f714481417ba3aa09056296b1bf Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Thu, 14 Mar 2024 18:57:34 +0300 Subject: [PATCH] added libconfig package --- packages/l/libconfig/Pkgfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/l/libconfig/Pkgfile diff --git a/packages/l/libconfig/Pkgfile b/packages/l/libconfig/Pkgfile new file mode 100644 index 0000000..c883ea5 --- /dev/null +++ b/packages/l/libconfig/Pkgfile @@ -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 +}