summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRubenKelevra2019-01-16 15:48:54 +0100
committerRubenKelevra2019-01-16 15:50:32 +0100
commitfffb77af4f69db5e242fc75434d69ca8cad69d98 (patch)
tree60537ff33e259a49d4e15b062a1579f3a2ccf1bc
downloadaur-engelsystem.tar.gz
initial release
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD52
-rw-r--r--engelsystem.install22
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..568a7356654
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = engelsystem
+ pkgdesc = tool for coordinating helpers and shifts on large events
+ pkgver = 3.0.0
+ pkgrel = 1
+ url = https://engelsystem.de/index_en.html
+ install = engelsystem.install
+ arch = any
+ license = GPL2
+ makedepends = yarn
+ makedepends = nodejs
+ depends = php
+ depends = mariadb
+ depends = php-gettext-enabler
+ depends = composer
+ depends = npm
+ optdepends = nginx: a supported application server
+ optdepends = apache: a supported application server
+ backup = usr/share/webapps/engelsystem/config/config.php
+ source = engelsystem-3.0.0.tar.gz::https://github.com/engelsystem/engelsystem/archive/v3.0.0.tar.gz
+ source = engelsystem.install
+ sha512sums = 1508ea888eda23b3f5e8d600c2793556942b9849c75b1341d9c5c17db4a4db207f7c5840363150f12dfd11751307738f8856b7b911dd55d0bb63618af9113474
+ sha512sums = SKIP
+
+pkgname = engelsystem
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e584ec65af5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Ruben Kelevra <ruben+aur-engelsystem@vfn-nrw.de>
+
+pkgname=engelsystem
+pkgver=3.0.0
+_dl_pkgver="v$pkgver"
+pkgrel=1
+pkgdesc='tool for coordinating helpers and shifts on large events'
+arch=(any)
+url='https://engelsystem.de/index_en.html'
+_download_url_base='https://github.com/engelsystem/engelsystem'
+license=('GPL2')
+depends=('php' 'mariadb' 'php-gettext-enabler' 'composer' 'npm')
+optdepends=('nginx: a supported application server'
+ 'apache: a supported application server')
+makedepends=('yarn' 'nodejs')
+backup=(usr/share/webapps/engelsystem/config/config.php)
+install='engelsystem.install'
+source=("${pkgname}-${pkgver}.tar.gz::${_download_url_base}/archive/${_dl_pkgver}.tar.gz"
+ 'engelsystem.install')
+sha512sums=('1508ea888eda23b3f5e8d600c2793556942b9849c75b1341d9c5c17db4a4db207f7c5840363150f12dfd11751307738f8856b7b911dd55d0bb63618af9113474'
+ 'SKIP'
+ )
+# validpgpkeys=('SKIP') # version 3.0.0 is not signed on github
+
+build() {
+ cd "$srcdir"/"${pkgname}-${pkgver}"
+
+ #this will fail with due to memory restrictions
+ #composer install
+ #yarn
+ #echo "running test suit..."
+ #./vendor/bin/phpunit --testsuite Unit > /dev/null
+
+ composer install --no-dev
+ composer dump-autoload --optimize
+ yarn
+
+ yarn build
+}
+
+package() {
+ _instdir="$pkgdir"/usr/share/webapps/engelsystem
+
+ cd "$srcdir"/"${pkgname}-${pkgver}"
+
+ rm -f .gitignore .gitlab-ci.yml README.md
+
+ cp -ax config/config.default.php config/config.php
+
+ install -dm 644 "$_instdir"
+ cp -dr --no-preserve=ownership . "$_instdir"
+}
diff --git a/engelsystem.install b/engelsystem.install
new file mode 100644
index 00000000000..198f927043a
--- /dev/null
+++ b/engelsystem.install
@@ -0,0 +1,22 @@
+post_install() {
+ echo "enabling the PDO-MySQL module in php"
+ sed -i -e 's/;extension=pdo_mysql/extension=pdo_mysql/' /etc/php/php.ini
+
+ install -dm775 /usr/share/webapps/engelsystem/import
+ chown http:http /usr/share/webapps/engelsystem/import
+ install -dm775 /usr/share/webapps/engelsystem/storage
+ chown http:http /usr/share/webapps/engelsystem/storage
+}
+
+pre_remove() {
+ cp -r /usr/share/webapps/engelsystem /usr/share/webapps/engelsystem_backup
+ echo 'Your Engelsystem folder was backed up to /usr/share/webapps/engelsystem_backup'
+}
+
+post_remove() {
+ rm -rf /usr/share/webapps/engelsystem
+}
+
+post_upgrade() {
+ echo 'Engelsystem was placed in /usr/share/webapps'
+}