aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmicrohttpd/APKBUILD
blob: 81eede1ec13751db6b1255b903827204bfbca556 (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
45
46
47
48
49
50
51
# Contributor: Carlo Landmeter 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmicrohttpd
pkgver=0.9.34
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"
	update_config_sub || return 1
	# 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
}

md5sums="2947eee13c2c8affb95023a0cb6fda0c  libmicrohttpd-0.9.34.tar.gz"
sha256sums="29a2bfd4fd2ddf60c756b8c283291a134898e3cc143843be421a040be1b25a88  libmicrohttpd-0.9.34.tar.gz"
sha512sums="ca4403adb89251abefc85cfd5dafa2a391db1cdff529b7056ca6429cc6f1ba99f510a9fbc34dbbb2c99ef006fe4be56ea6aa97c0a3a2ec94af03a2b6c3a7419f  libmicrohttpd-0.9.34.tar.gz"