summaryrefslogtreecommitdiffstats
path: root/abs/extra/libmicrohttpd
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/libmicrohttpd')
-rw-r--r--abs/extra/libmicrohttpd/PKGBUILD16
-rw-r--r--abs/extra/libmicrohttpd/libmicrohttpd.install20
2 files changed, 29 insertions, 7 deletions
diff --git a/abs/extra/libmicrohttpd/PKGBUILD b/abs/extra/libmicrohttpd/PKGBUILD
index e56945d..7312377 100644
--- a/abs/extra/libmicrohttpd/PKGBUILD
+++ b/abs/extra/libmicrohttpd/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 35497 2010-12-21 07:51:02Z spupykin $
+# $Id: PKGBUILD 79771 2012-11-12 09:04:51Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Norberto Lopes <shelika@mail.telepac.pt>
# Contributor: Kao Dome <kaodome@gmail.com>
@@ -6,16 +6,17 @@
# Contributor: Mathias Rohnstock <linksoft@gmx.de>
pkgname=libmicrohttpd
-pkgver=0.9.3
-pkgrel=2
+pkgver=0.9.23
+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')
+options=('!libtool')
+depends=('gnutls' 'libgcrypt')
+install=libmicrohttpd.install
source=(ftp://ftp.gnu.org/gnu/libmicrohttpd/$pkgname-$pkgver.tar.gz)
-md5sums=('a6c7dae57c51afd648b45a526098429a')
+md5sums=('efd038d93836adc0149beaa1c2927f61')
build() {
cd ${pkgname}-${pkgver}
@@ -31,5 +32,6 @@ package() {
${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
+ sed -i 's#Cflags: -I${includedir}#Cflags: -I${includedir} -I{includedir}/libmicrohttpd#' \
+ $pkgdir/usr/lib/pkgconfig/libmicrohttpd.pc
}
diff --git a/abs/extra/libmicrohttpd/libmicrohttpd.install b/abs/extra/libmicrohttpd/libmicrohttpd.install
new file mode 100644
index 0000000..dc0d2b9
--- /dev/null
+++ b/abs/extra/libmicrohttpd/libmicrohttpd.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(microhttpd.info microhttpd-tutorial.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}