aboutsummaryrefslogtreecommitdiffstats
path: root/testing/flyspray/APKBUILD
blob: ffdcb8b62ff0cee72d8d0154bcb77801fd493d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
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"