summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b949b821ad1e451d9b1b9796be33e9af6a227bb5 (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
# Maintainer: Sabart Otto - Seberm <seberm[at]seberm[dot]com>

pkgname=wwwsqldesigner
pkgver=2.7
pkgrel=1
pkgdesc="Visual web-based SQL modelling tool"
url="http://code.google.com/p/wwwsqldesigner/"
license=('BSD')
arch=('any')
depends=()
optdepends=('apache')
install=wwwsqldesigner.install
makedepends=('subversion')
source=("http://wwwsqldesigner.googlecode.com/files/${pkgname}-${pkgver}.zip")

package() {
  _instdir="$pkgdir/usr/share/webapps/$pkgname"
  mkdir -p "$_instdir" "$pkgdir/etc/webapps/$pkgname" "$pkgdir/etc/httpd/conf/extra"

  cp -ra $srcdir/${pkgname}-${pkgver}/* "$_instdir/"
  chmod 0644 -R "$_instdir"

  # It's similar to phpMyAdmin
  cat >$pkgdir/etc/webapps/$pkgname/apache.example.conf <<EOF
    Alias /${pkgname} "/usr/share/webapps/${pkgname}"
    <Directory "/usr/share/webapps/${pkgname}">
    	AllowOverride All
    	Options FollowSymlinks
		Require all granted
    </Directory>
EOF

  cp "$pkgdir/etc/webapps/$pkgname/apache.example.conf" "$pkgdir/etc/httpd/conf/extra/httpd-${pkgname}.conf"
  #echo "Include conf/extra/httpd-${pkgname}.conf" >> $pkgdir/etc/httpd/conf/httpd.conf

  find "${_instdir}" -type d -exec chmod 755 {} \;
}

sha1sums=('3bc7a0a96be57a9c137f511b547759822aba8a13')