# Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>

pkgname=apache-mod_form
pkgver=1.0
pkgrel=1
pkgdesc="A utility to decode data submitted from Web forms. It deals with both GET and POST methods where the data are encoded using the default content type application/x-www-form-urlencoded."
arch=('i686' 'x86_64')
url="http://apache.webthing.com/mod_form/"
license=('GPL')
depends=('apache')
makedepends=('patch')
source=("http://apache.webthing.com/svn/apache/forms/mod_form.c"
        "http://apache.webthing.com/svn/apache/forms/mod_form.h"
        'preserve-args.patch')
md5sums=('8339effe63ec1ea8ade1e8b90aabb23c'
         'e524cf838ae990bf6e118d985b1b91ca'
         '24f531501e999ff46bdbb920edf7a4a4')

build() {
  cd $srcdir/

  patch < preserve-args.patch
  apxs -c mod_form.c
}

package() {
  cd $srcdir/

  install -Dm0755 .libs/mod_form.so $pkgdir/usr/lib/httpd/modules/mod_form.so
  install -Dm0644 mod_form.h $pkgdir/usr/include/httpd/mod_form.h
}

# vim:set ts=2 sw=2 et:
