blob: 32b227c92cd738e159ce2527135309fe2aa48008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmicrohttpd
pkgver=0.9.49
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 gnutls-dev"
install=""
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 \
|| 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 || return 1
}
md5sums="3209aa2ac6199b874a6325342b86edbc libmicrohttpd-0.9.49.tar.gz"
sha256sums="9407d8252548ab97ace3276e0032f073820073c0599d43baff832902a8dab11c libmicrohttpd-0.9.49.tar.gz"
sha512sums="9bae8d187e9567ef706a6d1b806417f2b5f667195adf7a86f96f156982e4cbcf472da10b3220c0679aeceb2c74e7778153160f3b697ac7444de038505b6e94f8 libmicrohttpd-0.9.49.tar.gz"
|