# Contributor: Francesco Colista # Maintainer: Francesco Colista setvar pkgname = 'flyspray' setvar pkgver = '0.9.9.7' setvar pkgrel = '1' setvar pkgdesc = ""A PHP web-based bug tracker"" setvar url = ""http://www.flyspray.org/"" setvar arch = ""noarch"" setvar license = ""GPL2.1"" setvar depends = ""php php-xml"" setvar depends_dev = """" setvar makedepends = "$depends_dev" setvar install = ""$pkgname.post-install"" setvar pkggroups = ""www-data"" setvar subpackages = ""$pkgname-mysql $pkgname-mysqli $pkgname-pgsql"" setvar source = ""http://flyspray.org/$pkgname-$pkgver.zip"" setvar _builddir = "$srcdir" setvar _instdir = ""/usr/share/webapps/$pkgname"" proc prepare { sed -i -e "s/split/explode/" adodb/drivers/adodb-postgres64.inc.php } proc build { return 0 } proc 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" } proc pgsql { setvar arch = ""noarch"" setvar pkgdesc = ""Flyspray PostgreSQL support"" setvar depends = ""flyspray php-pgsql php-pdo_pgsql php-pear-mdb2-driver-pgsql"" mkdir -p "$subpkgdir"$_instdir } proc mysql { setvar arch = ""noarch"" setvar pkgdesc = ""Flyspray MySQL support"" setvar depends = ""flyspray php-mysql php-pdo_mysql php-pear-mdb2-driver-mysql"" mkdir -p "$subpkgdir"$_instdir } proc mysqli { setvar arch = ""noarch"" setvar pkgdesc = ""Flyspray MySQLi support"" setvar depends = ""flyspray php-mysqli php-pear-mdb2-driver-mysqli"" mkdir -p "$subpkgdir"$_instdir } setvar md5sums = ""3a218c5447d64af18f19bc63bb825e58 flyspray-0.9.9.7.zip"" setvar sha256sums = ""f05fb71d61ee3b4ab42a61efea7b2c4fc53fd4ad762c9f3ced7de664661c2f2d flyspray-0.9.9.7.zip"" setvar sha512sums = ""17d8126bfe393527ae7e64377c6580274a118e4fd449f1191190471e242479b6ed50f8451dd7074afc39fda430c0fa5dee3845092ee0ca83d3254ecc6f0b8885 flyspray-0.9.9.7.zip""