# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libmicrohttpd pkgver=0.9.25 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 --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-largefile \ --enable-curl \ --enable-messages make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 install -Dm644 "$_builddir"/src/include/platform.h \ "$pkgdir"/usr/include/platform.h install -Dm644 "$_builddir"/src/include/plibc/plibc.h \ "$pkgdir"/usr/include/plibc.h } md5sums="4f3b8ccd50e7133283f2aec5cc21620f libmicrohttpd-0.9.25.tar.gz" sha256sums="64e4971302631de690acefa74bdd269917ea7e6d260576373d65d75bd4fa005d libmicrohttpd-0.9.25.tar.gz" sha512sums="92ff56229f551889926a899e0596c988dae808eee59267233edad4b29e70e62f8d02a37eeff9286b295356b77c747673dc8fd3cded2fa3220dd0ea3da88bddc9 libmicrohttpd-0.9.25.tar.gz"