aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmicrohttpd/APKBUILD
blob: 07a0355e4df44e847c6ce21a946c564ed52c691b (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
# Contributor: Carlo Landmeter 
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmicrohttpd
pkgver=0.9.7
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
        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="a16b50a7167fd4e64b67e182a3d9a7c2  libmicrohttpd-0.9.7.tar.gz"