summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Auditor2016-02-16 12:08:01 +0100
committerStefan Auditor2016-02-16 12:08:01 +0100
commit698a3df937936b7ec3800120312d46c802bb0e7f (patch)
treec75d55db7b14cfad0b870f485bce7db3e6274432
downloadaur-698a3df937936b7ec3800120312d46c802bb0e7f.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD32
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6f1a669aa6c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue Feb 16 11:07:40 UTC 2016
+pkgbase = baikal-git
+ pkgdesc = Baïkal is a Calendar+Contacts server
+ pkgver = r522.3102b80%
+ pkgrel = 1
+ url = http://baikal-server.com/
+ arch = any
+ license = GPL
+ makedepends = git
+ makedepends = php-composer
+ depends = php
+ optdepends = sqlite: Database
+ optdepends = mariadb: Alternate database
+ optdepends = php-sqlite: To use the sqlite backend
+ source = baikal::git+https://github.com/fruux/Baikal.git
+ sha512sums = SKIP
+
+pkgname = baikal-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3046de311b3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Stefan Auditor <stefan.auditor@erdfisch.de>
+
+_pkgname=baikal
+pkgname=${_pkgname}-git
+pkgver=r522.3102b80%
+pkgrel=1
+pkgdesc="Baïkal is a Calendar+Contacts server"
+url="http://baikal-server.com/"
+arch=('any')
+license=('GPL')
+depends=('php')
+makedepends=('git' 'php-composer')
+optdepends=('sqlite: Database' 'mariadb: Alternate database' 'php-sqlite: To use the sqlite backend')
+source=("${_pkgname}"::"git+https://github.com/fruux/Baikal.git")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ sed -i '/zip -r baikal/d' Makefile
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ install -d "${pkgdir}/usr/share/webapps/${_pkgname}"
+ cp -dr --no-preserve=ownership "build/${_pkgname}" "${pkgdir}/usr/share/webapps/"
+}