aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drupal7/APKBUILD
blob: 19b533db2637d15337b63c682bdf611e1bec76c0 (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
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=drupal7
pkgver=7.36
pkgrel=0
pkgdesc="An open source content management platform"
url="https://www.drupal.org/"
arch="noarch"
license="GPL"
depends="php-fpm php-xml php-json php-gd php-ftp php-posix php-curl php-zlib
	php-dom php-ctype"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
pkggroups="www-data"
source="http://ftp.drupal.org/files/projects/drupal-$pkgver.tar.gz"

_builddir="$srcdir/drupal-$pkgver"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/var/lib/$pkgname \
		"$pkgdir"/usr/share/webapps/$pkgname/
	mv sites "$pkgdir"/var/lib/$pkgname/
	mv * "$pkgdir"/usr/share/webapps/$pkgname/
	ln -sf /var/lib/$pkgname/sites \
		"$pkgdir"/usr/share/webapps/$pkgname/sites || return 1
	install -dm2775 \
		"$pkgdir"/var/lib/$pkgname/sites/default/files || return 1
	chgrp -R www-data -R "$pkgdir"/var/lib/$pkgname || return 1
}

md5sums="98e1f62c11a5dc5f9481935eefc814c5  drupal-7.36.tar.gz"
sha256sums="72761e3e206e8081e29bea819a3f2cd0886f93a6ef9b2cdfa59a077f2e955391  drupal-7.36.tar.gz"
sha512sums="7991ecad4a073e81a40e75ad3309e85b996f673d38a0d0c286faa7717ca7dc7347c3ec8ab9dd3cdcaed3a195d951531d1c62c1c7b2ea3812fbf0727926f5dcbc  drupal-7.36.tar.gz"