APKBUILD 1.53 KB
Newer Older
1
# Contributor: Carlo Landmeter 
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
3
pkgname=libmicrohttpd
4 5
pkgver=0.9.33
pkgrel=0
6 7
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/"
8
arch="all"
9 10 11 12 13 14 15 16 17 18 19
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"
20
	update_config_sub || return 1
21 22 23 24 25
	# apply patches here
}

build() {
	cd "$_builddir"
26 27 28 29
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
30 31 32 33 34
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-largefile \
		--enable-curl \
35 36
		--enable-messages \
		|| return 1
37 38 39 40 41 42

	make || return 1
}

package() {
	cd "$_builddir"
43 44
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
45 46 47 48
        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
49 50
}

51 52 53
md5sums="013b10f9de1cda5448b29c81305354a3  libmicrohttpd-0.9.33.tar.gz"
sha256sums="d9587e8497548f820650cd607daf3615ea3272435779378983032c570f1cd559  libmicrohttpd-0.9.33.tar.gz"
sha512sums="4ca8dc37b59e5b3df2426b763420d88ae7691c57bace4bdb6bb766a135904c895892236a21da45bb636b8fcf0835fa101ce82484dec272e850b7627719c6e0f8  libmicrohttpd-0.9.33.tar.gz"