# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=flyspray pkgver=0.9.9.7 pkgrel=1 pkgdesc="A PHP web-based bug tracker" url="http://www.flyspray.org/" arch="noarch" license="GPL2.1" depends="php php-xml" depends_dev="" makedepends="$depends_dev" install="$pkgname.post-install" pkggroups="www-data" subpackages="$pkgname-mysql $pkgname-mysqli $pkgname-pgsql" source="http://flyspray.org/$pkgname-$pkgver.zip" _builddir=$srcdir _instdir="/usr/share/webapps/$pkgname" prepare() { sed -i -e "s/split/explode/" adodb/drivers/adodb-postgres64.inc.php } build() { return 0 } package() { cd "$_builddir" mkdir -p $pkgdir"$_instdir" cp -ar $srcdir/* $pkgdir"$_instdir" rm $pkgdir"$_instdir"/$pkgname-$pkgver.zip echo "deny from all" > $pkgdir"$_instdir"/.htaccess chgrp -R www-data $pkgdir"$_instdir" } pgsql() { arch="noarch" pkgdesc="Flyspray PostgreSQL support" depends="flyspray php-pgsql php-pdo_pgsql php-pear-mdb2-driver-pgsql" mkdir -p "$subpkgdir"$_instdir } mysql() { arch="noarch" pkgdesc="Flyspray MySQL support" depends="flyspray php-mysql php-pdo_mysql php-pear-mdb2-driver-mysql" mkdir -p "$subpkgdir"$_instdir } mysqli() { arch="noarch" pkgdesc="Flyspray MySQLi support" depends="flyspray php-mysqli php-pear-mdb2-driver-mysqli" mkdir -p "$subpkgdir"$_instdir } md5sums="3a218c5447d64af18f19bc63bb825e58 flyspray-0.9.9.7.zip" sha256sums="f05fb71d61ee3b4ab42a61efea7b2c4fc53fd4ad762c9f3ced7de664661c2f2d flyspray-0.9.9.7.zip" sha512sums="17d8126bfe393527ae7e64377c6580274a118e4fd449f1191190471e242479b6ed50f8451dd7074afc39fda430c0fa5dee3845092ee0ca83d3254ecc6f0b8885 flyspray-0.9.9.7.zip"