aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-04-03 11:50:26 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-04-03 11:50:26 +0000
commite42741597d934d92e13c1180294e06f9d978e974 (patch)
treee453770ad50af9ffc87bc729d8ae23d40abcffd1 /testing
parent8ea33fed8c67d134dd82dff13d87d7628345ea63 (diff)
downloadaports-e42741597d934d92e13c1180294e06f9d978e974.tar.bz2
aports-e42741597d934d92e13c1180294e06f9d978e974.tar.xz
testing/drupal7: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/drupal7/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/drupal7/APKBUILD b/testing/drupal7/APKBUILD
new file mode 100644
index 0000000000..19b533db26
--- /dev/null
+++ b/testing/drupal7/APKBUILD
@@ -0,0 +1,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"