# Contributor: Ɓukasz Jendrysik # Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libmicrohttpd pkgver=0.9.43 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="http://www.gnu.org/software/libmicrohttpd/" arch="all" license="GPL" depends= makedepends="curl-dev libgcrypt-dev" install= subpackages="$pkgname-dev $pkgname-doc" source="ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } 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-messages \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 "$_builddir"/src/include/platform.h \ "$pkgdir"/usr/include/platform.h } md5sums="23d5ee02cc9f16bff676b3c460b7b602 libmicrohttpd-0.9.43.tar.gz" sha256sums="414bb37471fd91646a7a41c6877a5be2d03871e8d9f845fd3ee55d0970d9069f libmicrohttpd-0.9.43.tar.gz" sha512sums="b197e0b88d15a782e9ee1d5fa05a44300590b88d2451c626a94f9dbdf06591d50dd2370893bdcbeea93a4bef0efdb5175db298ff4ddc6b493ad1d4dbb029ca8f libmicrohttpd-0.9.43.tar.gz"