blob: 2ca8b5e21a2e9a3b925dc250e3bc986621d9d09c (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname="owncloud"
pkgver="5.0.10"
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"
mkdir -p "$subpkgdir"/usr/share/webapps/owncloud
}
sqlite() {
pkgdesc="ownCloud SQLite support"
depends="owncloud php-sqlite3 php-pdo_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"
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="76ef522124a23e3d65fe65de00ae487a owncloud-5.0.10.tar.bz2
1105dcb4013298bf5d864115b6aac7e2 owncloud.config.php"
sha256sums="23dea0c7c66416e21e87097b611fefe961d9bd757b58a7eccdd70bd1a6c46bf7 owncloud-5.0.10.tar.bz2
febf93dc7dce3b9223318793c8f7bc160d90367ae186b7737860124e33d4dc2b owncloud.config.php"
sha512sums="2e0f29f122f8624be434e2974455be0287536337e52dc6e002624b9228da30f15da8acd0ccf063aba63569624d5a7504930939bae246ac95a54931e223deb68c owncloud-5.0.10.tar.bz2
17d1c248ecf081848371af759520b929e471bf32c6340b3dfb033ad6849cc96e41e0ed407d0fd8d1f0d22125aa8308a804e1a90108f28906c872884d2ddb1ac5 owncloud.config.php"
|