diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-05-24 11:50:02 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-05-24 11:54:25 +0000 |
commit | 3c79f7621aa64de29e6ff96969c0987f4367b518 (patch) | |
tree | cf5673597b2fa4beb4985bfda638b802b8d140fa | |
parent | 36d7bc77ea570e89e1109d355549fad3c8b33e88 (diff) | |
download | alpine_aports-3c79f7621aa64de29e6ff96969c0987f4367b518.tar.bz2 alpine_aports-3c79f7621aa64de29e6ff96969c0987f4367b518.tar.xz alpine_aports-3c79f7621aa64de29e6ff96969c0987f4367b518.zip |
community/nextcloud: upgrade to 12.0.0
- Move some larger apps into subpkgs in order to shrink main pkg size
- Install php-fileinfo in order to suppress a warning
- Cosmetic APKBUILD fixes
-rw-r--r-- | community/nextcloud/APKBUILD | 79 |
1 files changed, 44 insertions, 35 deletions
diff --git a/community/nextcloud/APKBUILD b/community/nextcloud/APKBUILD index bd427e08e7..c52aab40dc 100644 --- a/community/nextcloud/APKBUILD +++ b/community/nextcloud/APKBUILD | |||
@@ -1,29 +1,31 @@ | |||
1 | # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> | 1 | # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> |
2 | pkgname=nextcloud | 2 | pkgname=nextcloud |
3 | pkgver=11.0.3 | 3 | pkgver=12.0.0 |
4 | pkgrel=4 | 4 | pkgrel=0 |
5 | pkgdesc="A safe home for all your data" | 5 | pkgdesc="A safe home for all your data" |
6 | url="http://nextcloud.com" | 6 | url="http://nextcloud.com" |
7 | arch="noarch" | 7 | arch="noarch" |
8 | license="AGPL" | 8 | license="AGPL" |
9 | _php=php7 | 9 | _php=php7 |
10 | depends="$_php $_php-ctype $_php-curl $_php-dom $_php-gd $_php-iconv | 10 | depends="$_php $_php-ctype $_php-curl $_php-dom $_php-gd $_php-fileinfo |
11 | $_php-json $_php-mbstring $_php-openssl $_php-session $_php-simplexml | 11 | $_php-iconv $_php-json $_php-mbstring $_php-openssl |
12 | $_php-xml $_php-xmlreader $_php-xmlwriter $_php-zlib $_php-zip | 12 | $_php-session $_php-simplexml $_php-xml $_php-xmlreader |
13 | $_php-xmlwriter $_php-zlib $_php-zip | ||
13 | " | 14 | " |
14 | makedepends="$depends_dev" | 15 | makedepends="$depends_dev" |
15 | options="!check" | 16 | options="!check" |
16 | subpackages="$pkgname-doc $pkgname-activity $pkgname-firstrunwizard $pkgname-gallery | 17 | subpackages="$pkgname-doc $pkgname-activity $pkgname-encryption |
17 | $pkgname-mysql $pkgname-notifications $pkgname-pdfviewer $pkgname-pgsql | 18 | $pkgname-firstrunwizard $pkgname-gallery $pkgname-ldap |
18 | $pkgname-sqlite $pkgname-templateeditor $pkgname-texteditor | 19 | $pkgname-logreader $pkgname-mysql $pkgname-notifications |
19 | $pkgname-videoplayer" | 20 | $pkgname-password_policy $pkgname-pdfviewer $pkgname-pgsql |
21 | $pkgname-sqlite $pkgname-texteditor $pkgname-videoplayer | ||
22 | " | ||
20 | 23 | ||
21 | source="https://download.nextcloud.com/server/releases/$pkgname-$pkgver.zip | 24 | source="https://download.nextcloud.com/server/releases/$pkgname-$pkgver.zip |
22 | nextcloud10-dont-chmod-config.patch | 25 | nextcloud10-dont-chmod-config.patch |
23 | nextcloud.logrotate | 26 | nextcloud.logrotate |
24 | " | 27 | " |
25 | pkggroups="www-data" | 28 | pkggroups="www-data" |
26 | |||
27 | builddir="$srcdir"/$pkgname | 29 | builddir="$srcdir"/$pkgname |
28 | 30 | ||
29 | _ncbasedir="/var/lib/$pkgname" | 31 | _ncbasedir="/var/lib/$pkgname" |
@@ -32,16 +34,6 @@ _ncwwwdir="/usr/share/webapps/$pkgname" | |||
32 | _ncappsdir="$_ncbasedir/apps" | 34 | _ncappsdir="$_ncbasedir/apps" |
33 | _ncconfdir="/etc/$pkgname" | 35 | _ncconfdir="/etc/$pkgname" |
34 | 36 | ||
35 | |||
36 | prepare() { | ||
37 | cd "$builddir" | ||
38 | for i in $source; do | ||
39 | case $i in | ||
40 | *.patch) msg "Applying patch $i"; patch -p1 -i "$srcdir"/$i || return 1;; | ||
41 | esac | ||
42 | done | ||
43 | } | ||
44 | |||
45 | build() { | 37 | build() { |
46 | cd "$builddir" | 38 | cd "$builddir" |
47 | return 0 | 39 | return 0 |
@@ -71,7 +63,7 @@ package() { | |||
71 | 63 | ||
72 | doc() { | 64 | doc() { |
73 | pkgdesc="Nextcloud documentation" | 65 | pkgdesc="Nextcloud documentation" |
74 | depends="nextcloud" | 66 | depends="$pkgname" |
75 | mkdir -p "$subpkgdir"/usr/share/doc/nextcloud/core | 67 | mkdir -p "$subpkgdir"/usr/share/doc/nextcloud/core |
76 | mv "$pkgdir"/usr/share/webapps/nextcloud/core/doc \ | 68 | mv "$pkgdir"/usr/share/webapps/nextcloud/core/doc \ |
77 | "$subpkgdir"/usr/share/doc/nextcloud/core | 69 | "$subpkgdir"/usr/share/doc/nextcloud/core |
@@ -79,19 +71,19 @@ doc() { | |||
79 | 71 | ||
80 | pgsql() { | 72 | pgsql() { |
81 | pkgdesc="Nextcloud PostgreSQL support" | 73 | pkgdesc="Nextcloud PostgreSQL support" |
82 | depends="nextcloud $_php-pgsql $_php-pdo_pgsql" | 74 | depends="$pkgname $_php-pgsql $_php-pdo_pgsql" |
83 | mkdir -p "$subpkgdir"${_ncwwwdir} | 75 | mkdir -p "$subpkgdir"${_ncwwwdir} |
84 | } | 76 | } |
85 | 77 | ||
86 | sqlite() { | 78 | sqlite() { |
87 | pkgdesc="Nextcloud SQLite support" | 79 | pkgdesc="Nextcloud SQLite support" |
88 | depends="nextcloud $_php-sqlite3 $_php-pdo_sqlite" | 80 | depends="$pkgname $_php-sqlite3 $_php-pdo_sqlite" |
89 | mkdir -p "$subpkgdir"${_ncwwwdir} | 81 | mkdir -p "$subpkgdir"${_ncwwwdir} |
90 | } | 82 | } |
91 | 83 | ||
92 | mysql() { | 84 | mysql() { |
93 | pkgdesc="Nextcloud MySQL support" | 85 | pkgdesc="Nextcloud MySQL support" |
94 | depends="nextcloud $_php-pdo_mysql" | 86 | depends="$pkgname $_php-pdo_mysql" |
95 | mkdir -p "$subpkgdir"${_ncwwwdir} | 87 | mkdir -p "$subpkgdir"${_ncwwwdir} |
96 | } | 88 | } |
97 | 89 | ||
@@ -113,6 +105,12 @@ activity() { | |||
113 | _mv_app pkg activity | 105 | _mv_app pkg activity |
114 | } | 106 | } |
115 | 107 | ||
108 | encryption() { | ||
109 | pkgdesc="Nextcloud Encryption app" | ||
110 | depends="$pkgname $_php-mcrypt" | ||
111 | _mv_app pkg encryption | ||
112 | } | ||
113 | |||
116 | firstrunwizard() { | 114 | firstrunwizard() { |
117 | pkgdesc="Nextcloud Firstrunwizard app" | 115 | pkgdesc="Nextcloud Firstrunwizard app" |
118 | depends="$pkgname" | 116 | depends="$pkgname" |
@@ -120,43 +118,54 @@ firstrunwizard() { | |||
120 | } | 118 | } |
121 | 119 | ||
122 | gallery() { | 120 | gallery() { |
123 | pkgdesc="Nextcloud integrated gallery application" | 121 | pkgdesc="Nextcloud Gallery app" |
124 | depends="nextcloud" | 122 | depends="$pkgname" |
125 | _mv_app pkg gallery | 123 | _mv_app pkg gallery |
126 | } | 124 | } |
127 | 125 | ||
126 | ldap() { | ||
127 | pkgdesc="Nextcloud LDAP auth backend support" | ||
128 | depends="$pkgname" | ||
129 | _mv_app pkg user_ldap | ||
130 | } | ||
131 | |||
132 | logreader() { | ||
133 | pkgdesc="Nextcloud Log Reader app" | ||
134 | depends="$pkgname" | ||
135 | _mv_app pkg logreader | ||
136 | } | ||
137 | |||
128 | notifications() { | 138 | notifications() { |
129 | pkgdesc="Nextcloud Email notification support" | 139 | pkgdesc="Nextcloud Email notification support" |
130 | depends="$pkgname" | 140 | depends="$pkgname" |
131 | _mv_app pkg notifications | 141 | _mv_app pkg notifications |
132 | } | 142 | } |
133 | 143 | ||
134 | 144 | password_policy() { | |
135 | templateeditor() { | 145 | pkgdesc="Nextcloud Password Policy app" |
136 | pkgdesc="Nextcloud Email template editor app" | ||
137 | depends="$pkgname" | 146 | depends="$pkgname" |
138 | _mv_app pkg templateeditor | 147 | _mv_app pkg password_policy |
139 | } | 148 | } |
140 | 149 | ||
141 | pdfviewer() { | 150 | pdfviewer() { |
142 | pkgdesc="Nextcloud integrated PDF viewer" | 151 | pkgdesc="Nextcloud integrated PDF viewer" |
143 | depends="nextcloud" | 152 | depends="$pkgname" |
144 | _mv_app pkg files_pdfviewer | 153 | _mv_app pkg files_pdfviewer |
145 | } | 154 | } |
146 | 155 | ||
147 | texteditor() { | 156 | texteditor() { |
148 | pkgdesc="Nextcloud integrated text editor" | 157 | pkgdesc="Nextcloud Text Editor app" |
149 | depends="nextcloud" | 158 | depends="$pkgname" |
150 | _mv_app pkg files_texteditor | 159 | _mv_app pkg files_texteditor |
151 | } | 160 | } |
152 | 161 | ||
153 | videoplayer() { | 162 | videoplayer() { |
154 | pkgdesc="Nextcloud integrated video viewer" | 163 | pkgdesc="Nextcloud Video Viewer app" |
155 | depends="nextcloud" | 164 | depends="nextcloud" |
156 | provides="$pkgname-videoviewer" | 165 | provides="$pkgname-videoviewer" |
157 | _mv_app pkg files_videoplayer | 166 | _mv_app pkg files_videoplayer |
158 | } | 167 | } |
159 | 168 | ||
160 | sha512sums="f4277fe2b66286a1fedf1642df6dd546f32e60bfdbc08a67e1881a2f8ff888516694645bdd3cd5da2074c8f56a1dfe7c955e1fcbf6e93ca99a7c82309c05017c nextcloud-11.0.3.zip | 169 | sha512sums="0e409eedbcc0f4e1652085c3e384db373858b0cc116c70361a4d066a08afbd6e75792332f95d08773cbed78c1520532886268249d514f2da70acb3ba120420d5 nextcloud-12.0.0.zip |
161 | a12a73a38bc009d3307ce97bb32fc62ac93e125a77a3d36b31c9d2212953fa17bd5c31f819e0759a0645b1c285817b067143b0b9c3673ce4ab3043fae426a67c nextcloud10-dont-chmod-config.patch | 170 | a12a73a38bc009d3307ce97bb32fc62ac93e125a77a3d36b31c9d2212953fa17bd5c31f819e0759a0645b1c285817b067143b0b9c3673ce4ab3043fae426a67c nextcloud10-dont-chmod-config.patch |
162 | 80b94b04507502fa80f3473e4ce8041c2e1f832da8a44408f2f1beda4319dddfc55c9e79d80e8e5a5bfecb770820109870f888d2a3eed9ab5981abcd89f0a812 nextcloud.logrotate" | 171 | 80b94b04507502fa80f3473e4ce8041c2e1f832da8a44408f2f1beda4319dddfc55c9e79d80e8e5a5bfecb770820109870f888d2a3eed9ab5981abcd89f0a812 nextcloud.logrotate" |