summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ff6c65d933db767648f655a5ed277a272b4b646a (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: realitygaps <realitygaps@yahoo.com>
pkgname=drupal8-git
pkgver=20110620
pkgrel=1
pkgdesc="A PHP based content management system - GIT version"
arch=('i686' 'x86_64')
install="drupal8-git.install"
url="http://drupal.org"
license=('GPL')
makedepends=('git' 'php')

_gitroot="--branch 8.0.x http://git.drupal.org/project/drupal.git"
_gitname="drupal8-git"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #
  mkdir -p $pkgdir/usr/share/webapps/drupal8-git
  cp -r $srcdir/drupal8-git/{*,.htaccess} $pkgdir/usr/share/webapps/drupal8-git
  echo "deny from all" > $pkgdir/usr/share/webapps/drupal8-git/.htaccess
}