aboutsummaryrefslogtreecommitdiffstats
path: root/main/owncloud/APKBUILD
blob: 81f02bcfc46ea7cba1464b54c0609249573db640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="owncloud"
pkgver="4.5.13"
pkgrel=0
pkgdesc="Your own WebDAV-based cloud service"
url="http://owncloud.org"
arch="noarch"
license="AGPL"
depends="php php-ctype php-dom php-gd php-iconv php-json php-zlib
	php-zip"
depends_dev=
makedepends="$depends_dev"
install="$pkgname.post-install $pkgname.post-upgrade"
subpackages="$pkgname-pgsql $pkgname-sqlite $pkgname-mysql
	$pkgname-texteditor $pkgname-videoviewer"
replaces="$pkgname-plugins"
source="http://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2
	owncloud.config.php
	"


_builddir="$srcdir"/$pkgname

prepare() {
	cd "$_builddir"
	return 0
}

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 php-pear-mdb2-driver-pgsql postgresql"
	mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
}

sqlite() {
	pkgdesc="ownCloud SQLite support"
	depends="owncloud php-sqlite php-pdo_sqlite sqlite"
	mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
}

mysql() {
	pkgdesc="ownCloud MySQL support"
	depends="owncloud php-mysql php-pdo_mysql php-pear-mdb2-driver-mysql mysql"
	mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
}

plugins() {
	pkgdesc="ownCloud 3rdparty plugins"
	depends="owncloud"
	mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
	mv "$pkgdir"/usr/share/webapps/owncloud/3rdparty \
	 "$subpkgdir"/usr/share/webapps/owncloud
}

_mv_app() {
	mkdir -p "$subpkgdir"/usr/share/webapps/owncloud/apps
	mv "$pkgdir"/usr/share/webapps/owncloud/apps/files_$1 \
	 "$subpkgdir"/usr/share/webapps/owncloud/apps
}

texteditor() {
	pkgdesc="ownCloud integrated text editor"
	depends="owncloud"
	_mv_app texteditor
}

videoviewer() {
	pkgdesc="ownCloud integrated video viewer"
	depends="owncloud"
	_mv_app videoviewer
}


md5sums="584c3e789dede0a15e75a1a5f0aa44b1  owncloud-4.5.13.tar.bz2
7dc1944955f985e147f2bfe27c6e8b6e  owncloud.config.php"
sha256sums="e9aa15499b177ce627c4a7433d17c8c6537c63176966ce4805ea3320c613687e  owncloud-4.5.13.tar.bz2
b1e8c70bf2cf84aef3d909981b615991b16587c2c96c7fac1d94194244e36791  owncloud.config.php"
sha512sums="0d0f88c1fb9b27dbcde15ab465fb30fa1492e4e3205c0ff526341fd773157b40139ea6d0c3a539579f51b2f9a5514035ed3b6b072ebb19b97da551c5ef8ede46  owncloud-4.5.13.tar.bz2
3d49868fd2b7cdfcd8917b27bda32c3d8f0ce190ea12b744cd8a1da4d6ee283a676ccf5cd028bd55eda804a8bb73fe8199a983164066c119785965316a7a7a15  owncloud.config.php"