# Contributor: Leo # Contributor: Ɓukasz Jendrysik # Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libmicrohttpd pkgver=0.9.68 pkgrel=0 pkgdesc="A small C library that is supposed to make it easy to run an HTTP server as part of another application." url="https://www.gnu.org/software/libmicrohttpd/" arch="all" license="LGPL-2.1-or-later" makedepends="curl-dev libgcrypt-dev gnutls-dev automake autoconf libtool" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-$pkgver.tar.gz disable-test_options.patch" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-largefile \ --enable-curl \ --enable-https \ --enable-messages make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 "$builddir"/src/include/platform.h \ "$pkgdir"/usr/include/platform.h } sha512sums="9daaab5fb35fef6f2a19b7e08eeb8473aeb0a67631808a8d7a7f78a09cb621ca5d32dbbbca616865a40afb92f8c6495f9e2ba1674880af8011a2bc798c070a13 libmicrohttpd-0.9.68.tar.gz 7bbd8d2571f2bf7d06c956cc5e5decf154139baa1a716b43501b822b18a396b2cc97efd72118bc3dd5e20439611eb333730c436fe9f0a1ce2cf928066520e619 disable-test_options.patch"