mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 19:32:31 +01:00
53 lines
1.5 KiB
Plaintext
53 lines
1.5 KiB
Plaintext
# Contributor: Carlo Landmeter
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libmicrohttpd
|
|
pkgver=0.9.27
|
|
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
|
|
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="a10496b7f1b495aaf6897584da52f51b libmicrohttpd-0.9.27.tar.gz"
|
|
sha256sums="d532edf64c3a9da472114c2d10fc94606e3b31f21b883ec2e796ab8478f7e9cb libmicrohttpd-0.9.27.tar.gz"
|
|
sha512sums="00901db735d86f27c4a8dbf4a7a5dc816f2e3dbb7468dc803891fc94ba918231dda880b5cebd3c10347ed73144393ba32753a4eadc323f62615c0909694b2647 libmicrohttpd-0.9.27.tar.gz"
|