APKBUILD 1.45 KB
Newer Older
1
# Contributor: Carlo Landmeter 
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
3
pkgname=libmicrohttpd
4
pkgver=0.9.26
5
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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
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"
38 39
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
40 41 42 43
        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
44 45
}

46 47 48
md5sums="bdac9b62fa3080890f9ab44cf29749fc  libmicrohttpd-0.9.26.tar.gz"
sha256sums="81901d512a3f60e7ed606efd68b55a8135eb5357b99ee6fcbc5ffef12a7ae1c5  libmicrohttpd-0.9.26.tar.gz"
sha512sums="8ae414cd86dd5c05914feba51693e8d66b7402529ee9f3fde134bdf240cb2682fb96fdb841063331493eef7caf2b54c3568249d7e3eb882de5edb77f3aebc196  libmicrohttpd-0.9.26.tar.gz"