# Maintainer: Zeph pkgname=bizou pkgver=1.7 pkgrel=1 pkgdesc="Bizou - a (french) KISS php image gallery" arch=('any') url="http://positon.org/bizou/" license=('GPLv3') depends=('php' 'php-gd') makedepends=() options=('!strip') source=("http://positon.org/bizou/${pkgname}_v${pkgver}.tar.gz") backup=('etc/webapps/bizou/config.php') md5sums=('7ad2151722b65495d41eaf2e4b61508c') package() { # install project install -o http -g http -d ${pkgdir}/usr/share/webapps/ cp -a ${srcdir}/${pkgname} ${pkgdir}/usr/share/webapps/ chown -R http:http ${pkgdir}/usr/share/webapps/${pkgname} # install config file install -d ${pkgdir}/etc/webapps/${pkgname} # move config to /etc mv ${pkgdir}/usr/share/webapps/${pkgname}/config.php ${pkgdir}/etc/webapps/${pkgname}/config.php chown -R http:http ${pkgdir}/etc/webapps/${pkgname}/config.php ln -s /etc/webapps/${pkgname}/config.php ${pkgdir}/usr/share/webapps/${pkgname}/config.php cat >$pkgdir/etc/webapps/bizou/apache.example.conf < AllowOverride All Options FollowSymlinks Order allow,deny Allow from all php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/" EOF cat >$pkgdir/etc/webapps/bizou/nginx.example.conf <