updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / drupal-cvs / PKGBUILD
blob1cad2cc0714602c8cec33e506e9ee6b0032dbc8d
1 pkgname=drupal-cvs
2 pkgver=20101018
3 pkgrel=1
4 pkgdesc="A PHP-based content management platform - CVS Version"
5 arch=('i686' 'x86_64')
6 url="http://www.drupal.org/"
7 license=('GPL')
8 depends=('php')
9 install=('drupal-cvs.install')
10 backup=(srv/http/drupalcvs/.htaccess)
12 _cvsroot=":pserver:anonymous:anonymous:@cvs.drupal.org:/cvs/drupal"
13 _cvsmod="drupal"
15 build() {
17  msg "Connecting to $_cvsmod CVS server...."
18   if [ -d $_cvsmod/CVS ]; then
19     cd $_cvsmod
20     cvs -z3 update -d
21   else
22     cvs -z6 -d $_cvsroot co -D -f $_cvsmod
23   fi
26   mkdir -p $startdir/pkg/srv/http/drupalcvs
27   cp -r $startdir/src/$_cvsmod/{*,.htaccess} $startdir/pkg/srv/http/drupalcvs
28   echo "deny from all" > $startdir/pkg/srv/http/drupalcvs/.htaccess