core/libmicrohttpd/PKGBUILD
2014-12-12 09:53:46 +00:00

33 lines
1.0 KiB
Bash
Executable File

# maintainer inkane@chakra-project.or
# contributor abveritas@chakra-project.org
pkgname=libmicrohttpd
pkgver=0.9.37
pkgrel=2
pkgdesc="a small C library that is supposed to make it easy to run an HTTP server as part of another application."
arch=('x86_64')
url="http://www.gnu.org/software/libmicrohttpd/"
license=('LGPL')
depends=('gnutls' 'libgcrypt')
optdepends=('file' 'curl')
options=(!libtool)
install=libmicrohttpd.install
source=("ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz")
md5sums=('fdf1e0534d83bbf2663f80fa7873be77')
build() {
cd ${pkgname}-${pkgver}
./configure --prefix=/usr --disable-dependency-tracking --enable-largefile \
--enable-curl --enable-messages --with-pic
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/platform.h \
${pkgdir}/usr/include/$pkgname/platform.h
sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I${includedir}/libmicrohttpd#' \
$pkgdir/usr/lib/pkgconfig/libmicrohttpd.pc
}