mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 17:47:15 +08:00
29 lines
1009 B
Bash
Executable File
29 lines
1009 B
Bash
Executable File
pkgname=libmicrohttpd
|
|
pkgver=0.9.4
|
|
pkgrel=1
|
|
pkgdesc="a small C library that is supposed to make it easy to run an HTTP server as part of another application."
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/libmicrohttpd/"
|
|
license=('LGPL')
|
|
options=(!libtool)
|
|
depends=('gnutls')
|
|
source=(ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz)
|
|
md5sums=('31f37439095e1f7143af97207f03aa14')
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
./configure --prefix=/usr --disable-dependency-tracking --enable-largefile \
|
|
--enable-curl --enable-messages --with-pic
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/platform.h \
|
|
${pkgdir}/usr/include/$pkgname/platform.h
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/src/include/plibc/plibc.h \
|
|
${pkgdir}/usr/include/$pkgname/plibc.h
|
|
sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' $pkgdir/usr/lib/pkgconfig/libmicrohttpd.pc
|
|
}
|