diff options
author | Michael Gerber | 2016-01-01 17:23:03 +0100 |
---|---|---|
committer | Michael Gerber | 2016-01-01 17:23:03 +0100 |
commit | 4236e890df92add6a12f3f33161a270419edcd30 (patch) | |
tree | 0a5ebc7b41b5bb1768f57229c417888dc9fc67a3 | |
download | aur-4236e890df92add6a12f3f33161a270419edcd30.tar.gz |
Initial commit. Package builds and seems to work
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | calcengine.install | 16 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1024388a7531 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Fri Jan 1 16:16:23 UTC 2016 +pkgbase = calcengine + pkgdesc = Open-Xchange + pkgver = 1.4.993 + pkgrel = 1 + url = http://www.ox.io/ + install = calcengine.install + arch = any + groups = open-xchange + license = GPLv2 + provides = calcengine + source = https://software.open-xchange.com/products/appsuite/stable/debs/DebianJessie/all/calcengine-1.4.993-Linux.deb + sha256sums = 406389fe920b6f8039aa2b98d10eaf4e30773d98f34ac509b3546aac3fc5ca16 + +pkgname = calcengine + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8d34455e58de --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Michael Gerber <aur at lynxcore dot org > +pkgname=calcengine +pkgver=1.4.993 +pkgrel=1 +pkgdesc='Open-Xchange' +groups=('open-xchange') +install='calcengine.install' +arch=('any') +url='http://www.ox.io/' +license=('GPLv2') +depends=() +makedepends=() +conflicts=() +provides=('calcengine') +source=('https://software.open-xchange.com/products/appsuite/stable/debs/DebianJessie/all/calcengine-1.4.993-Linux.deb') +sha256sums=('406389fe920b6f8039aa2b98d10eaf4e30773d98f34ac509b3546aac3fc5ca16') + +package() { + if test -f "data.tar.xz"; then + tar xf data.tar.xz + cp -a $(find . -mindepth 1 -maxdepth 1 -type d) "$pkgdir" + fi + + if test -f "data.tar.gz"; then + tar xf data.tar.gz + cp -a $(find . -mindepth 1 -maxdepth 1 -type d) "$pkgdir" + fi +} diff --git a/calcengine.install b/calcengine.install new file mode 100644 index 000000000000..5a0607f15101 --- /dev/null +++ b/calcengine.install @@ -0,0 +1,16 @@ +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). + +pre_install() { + if id -u "open-xchange" >/dev/null 2>&1; then + echo "user open-xchange exists. All good." + else + echo "user open-xchange does not exist. Creating it now" + useradd -U -s /usr/bin/false -d /opt/open-xchange open-xchange + fi +} + +post_install() { + chown -R open-xchange:open-xchange /opt/open-xchange +} |