# Contributor: Andreas Itzchak Rehberg <devel@izzysoft.de>
# Maintainer: Andreas Itzchak Rehberg <devel AT izzysoft DOT de>
# This PKGBUILD file was autogenerated and should be verified before use!
pkgname=phpdivelog
pkgver=0.5.0
pkgrel=1
pkgdesc="phpDiveLog brings your Aqua Divelog data to the Web"
arch=('any')
url="https://www.izzysoft.de/"
license=('GPL')
depends=('php' 'httpd')
provides=('phpdivelog')
backup=('usr/share/phpdivelog/inc/config.inc' 'etc/pdlpwd')
source=(http://projects.izzysoft.de/ftp/net/div/izzysoft/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums('f3ddcad83b1ed21fd7c58b83a6237f6d')

build() {
  cd $startdir/src/$pkgname-$pkgver
  make DESTDIR="${pkgdir}" prefix=/usr install
  rm -rf ${pkgdir}/usr/share/phpdivelog/install
  rm -f ${pkgdir}/var/www/phpdivelog
  if [ ! -L /var/www/phpdivelog ]; then ln -s /usr/share/phpdivelog /var/www/phpdivelog; fi
}
# vim: set ts=2 sw=2 et:
