summaryrefslogtreecommitdiff
path: root/user/libconfig
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-23 17:29:06 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-23 17:30:01 -0500
commitda38485eeda04c183b449ea63e2173e7125231b3 (patch)
tree0538c9a417340e455b7d12bdfce017080010e10c /user/libconfig
parent3303f509dfe25f12cf153ac1b4af0e7f603cf61f (diff)
downloadpackages-da38485eeda04c183b449ea63e2173e7125231b3.tar.gz
packages-da38485eeda04c183b449ea63e2173e7125231b3.tar.bz2
packages-da38485eeda04c183b449ea63e2173e7125231b3.tar.xz
packages-da38485eeda04c183b449ea63e2173e7125231b3.zip
user/libconfig: pull in, bump to 1.7.2, fix up
Diffstat (limited to 'user/libconfig')
-rw-r--r--user/libconfig/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/user/libconfig/APKBUILD b/user/libconfig/APKBUILD
new file mode 100644
index 000000000..8f5939f4e
--- /dev/null
+++ b/user/libconfig/APKBUILD
@@ -0,0 +1,46 @@
+# Maintainer:
+pkgname=libconfig
+pkgver=1.7.2
+pkgrel=0
+pkgdesc="Library for manipulating structured configuration files"
+url="http://www.hyperrealm.com/libconfig/libconfig.html"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+makedepends="autoconf automake libtool texinfo"
+subpackages="$pkgname-doc $pkgname-dev $pkgname++:_cxx"
+source="$pkgname-$pkgver.tar.gz::https://github.com/hyperrealm/$pkgname/archive/v$pkgver.tar.gz"
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ autoreconf -vif
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir/" install
+}
+
+_cxx() {
+ pkgdesc="C++ bindings for libconfig"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libconfig++.so.* "$subpkgdir"/usr/lib/
+}
+
+sha512sums="9df57355c2d08381b4a0a6366f0db3633fbe8f73c2bb8c370c040b0bae96ce89ee4ac6c17a5a247fed855d890fa383e5b70cb5573fc9cfc62194d5b94e161cee libconfig-1.7.2.tar.gz"