# Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
# http://github.com/fukawi2/aur-packages

pkgname=apache-mod_macro
_realname=mod_macro
pkgver=1.1.10
pkgrel=1
pkgdesc="DSO module for Apache that allows the definition and use of macros within apache runtime configuration files."
url="http://coelho.net/mod_macro/"
arch=('i686' 'x86_64')
license=('apache')
depends=('apache')
makedepends=('apache')
#install="$_realname.install"
source=("http://coelho.net/$_realname/$_realname-$pkgver.tar.gz")
md5sums=('58cc6dce2ce4c39fcd302005f7345165')

_MODDIR='usr/lib/httpd/modules'
_DOCDIR="usr/share/doc/$pkgname"

build() {
  cd $srcdir/$_realname-$pkgver

  # make the module
  /usr/sbin/apxs -c -o $_realname.so $_realname.c
}

package() {
  cd $srcdir/$_realname-$pkgver

  install -Dm644 .libs/$_realname.so $pkgdir/$_MODDIR/$_realname.so

  # install docs
  install -Dm644 $_realname.html $pkgdir/$_DOCDIR/$pkgname.html
}

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