summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7424869c3d749238a26d229dd9f3b41fb696f67b (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
# Maintainer: James An <james@jamesan.ca>

pkgname=aegir-provision
_pkgname=${pkgname##*-}
pkgver=7.x_3.10
pkgrel=1
pkgdesc="mass Drupal hosting system - backend"
arch=('any')
url='http://aegirproject.org'
license=('GPL')
depends=('drush>=7')
source=("https://ftp.drupal.org/files/projects/$_pkgname-${pkgver//_/-}.tar.gz")
md5sums=('2ffc48cf2dadd2938f7b49c8bdeb00c2')

package() {
    cd $_pkgname

    install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

    install --directory "$pkgdir/usr/share/webapps/drush/commands/$_pkgname"
    cp --archive --target-directory="$pkgdir/usr/share/webapps/drush/commands/$_pkgname" \
      db http platform Provision Symfony \
      provision.{api.php,{,{context,drush,file,service}.}inc,info} \
      {install,migrate,uninstall}.hostmaster.inc parse.backend.inc

    install --directory "$pkgdir/usr/share/doc/$pkgname"
    for file in example.drushrc.php example.sudoers README.md; do
      cp --archive --target-directory="$pkgdir/usr/share/doc/$pkgname" $file
      ln --relative --symbolic $pkgdir/usr/share/{doc/$pkgname,webapps/drush/commands/$_pkgname}/$file
    done

    install --directory "$pkgdir/usr/share/$pkgname"
    for file in aegir{,-{dev,release}}.make provision-tests scripts upgrade.sh.txt Vagrantfile; do
      cp --archive --target-directory="$pkgdir/usr/share/$pkgname" $file
      ln --relative --symbolic $pkgdir/usr/share/{$pkgname,webapps/drush/commands/$_pkgname}/$file
    done
}