# Contributor: Ɓukasz Jendrysik # Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libmicrohttpd pkgver=0.9.62 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="GPL" makedepends="curl-dev libgcrypt-dev gnutls-dev" subpackages="$pkgname-dev $pkgname-doc" source="ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver 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="337f29dbc5e8c30132c17aad6142f21ea1c794b0ce80a3fc4c5e1e14b3dabb300aa410bf9413ef9e65d5d486fcfedbc3716725763a1fa28b4687c9f2aa3158e4 libmicrohttpd-0.9.62.tar.gz"