updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jaws / PKGBUILD
blob3da14465e358dd76d339c35ea4b8a190ba8caeca
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Mark Rosenstand <mark@borkware.net>
4 pkgname=jaws
5 pkgver=0.8.9
6 pkgrel=1
7 pkgdesc="A Framework and Content Management System for building dynamic web sites"
8 arch=('any')
9 url="http://www.jaws-project.com/"
10 license=('GPL' 'LGPL' 'BSD')
11 depends=('php')
12 optdepends=('mysql: for MySQL support' \
13   'php-pgsql: for PostgreSQL support'\
14   'php-sqlite: for SQLite support' \
15   'gd: for Photo Organizer support' \
16   'imagemagick: for Photo Organizer support')
17 backup=(srv/http/$pkgname/.htaccess)
18 source=(http://bits.jaws-project.com/releases/$pkgname-$pkgver/$pkgname-complete-$pkgver.tar.gz)
19 md5sums=('87ec8f678e483a794dd268ca6aa0a592')
21 build() {
22   cd "$srcdir"
23   install -m755 -d "$pkgdir"/srv/http/$pkgname
24   mv html/{,.}htaccess
25   mv html/data/{,.}htaccess
26   cp -r html/{*,.htaccess} "$pkgdir"/srv/http/$pkgname/
27   find "$pkgdir"/srv/http/$pkgname -type d -exec chmod 755 {} +
28   find "$pkgdir"/srv/http/$pkgname -type f -exec chmod 644 {} +
29   install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
30   install -Dm644 NEW_BSD "$pkgdir"/usr/share/licenses/$pkgname/BSD_LICENSE