aboutsummaryrefslogtreecommitdiffstats
path: root/main/owncloud/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/owncloud/APKBUILD')
-rw-r--r--main/owncloud/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/main/owncloud/APKBUILD b/main/owncloud/APKBUILD
new file mode 100644
index 0000000000..905ee8cda6
--- /dev/null
+++ b/main/owncloud/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=owncloud
+pkgver=4.0.5
+pkgrel=0
+pkgdesc="Your own WebDAV-based cloud service"
+url="http://owncloud.org"
+arch="noarch"
+license="AGPL"
+depends="php php-ctype php-gd php-json php-zip"
+depends_dev=
+makedepends="$depends_dev"
+install="$pkgname.post-install"
+subpackages="$pkgname-pgsql $pkgname-sqlite"
+source="http://download.owncloud.org/releases/$pkgname-$pkgver.tar.bz2
+ owncloud.config.php"
+
+
+_builddir="$srcdir"/$pkgname
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/etc/owncloud
+ mkdir -p "$pkgdir"/var/lib/owncloud/data
+ mkdir -p "$pkgdir"/usr/share/webapps/owncloud
+ rm -rf config data
+ mv * "$pkgdir"/usr/share/webapps/owncloud
+ ln -s /etc/owncloud "$pkgdir"/usr/share/webapps/owncloud/config || exit 1
+ #ln -s /var/lib/owncloud/data "$pkgdir"/usr/share/webapps/owncloud/data || exit 1
+ install -m640 ../owncloud.config.php "$pkgdir"/etc/owncloud/config.php
+}
+
+pgsql() {
+ pkgdesc="ownCloud PostgreSQL support"
+ depends="owncloud php-pgsql php-pdo_pgsql"
+ mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
+}
+
+sqlite() {
+ pkgdesc="ownCloud SQLite support"
+ depends="owncloud php-sqlite php-pdo_sqlite"
+ mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
+}
+
+md5sums="08960fcc66d48760cbb8a6e4a68978bb owncloud-4.0.5.tar.bz2
+ffca86e31918c3b73878e72148ba9134 owncloud.config.php"