# Contributor: Ɓukasz Jendrysik # Maintainer: Leonardo Arena pkgname="owncloud" pkgver="8.2.3" pkgrel=0 _contactsver="8.0.10" _calendarver="0.8.1" _tasksver="0.8.1" _documentsver="$pkgver" _pdfviewerver="$pkgver" _texteditorver="$pkgver" _mozillasyncver="1.4" _musicver="0.3.9" pkgdesc="Your own WebDAV-based cloud service" url="http://owncloud.org" arch="noarch" license="AGPL" depends="php php-ctype php-curl php-dom php-gd php-iconv php-json php-xml php-zlib php-zip" depends_dev= makedepends="$depends_dev" install= subpackages="$pkgname-pgsql $pkgname-sqlite $pkgname-mysql $pkgname-encryption $pkgname-calendar $pkgname-contacts $pkgname-documents $pkgname-external $pkgname-mozilla_sync $pkgname-music $pkgname-ldap $pkgname-tasks $pkgname-texteditor $pkgname-pdfviewer $pkgname-videoviewer" replaces="$pkgname-plugins" source="https://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2 $pkgname-contacts-$_contactsver.tar.gz::https://github.com/owncloud/contacts/archive/v$_contactsver.tar.gz $pkgname-calendar-$_calendarver.tar.gz::https://github.com/owncloud/calendar/archive/v$_calendarver.tar.gz $pkgname-documents-$_documentsver.tar.gz::https://github.com/owncloud/documents/archive/v$_documentsver.tar.gz $pkgname-texteditor-$_texteditorver.tar.gz::https://github.com/owncloud/files_texteditor/archive/v$_texteditorver.tar.gz $pkgname-mozilla_sync-$_mozillasyncver.tar.gz::https://github.com/owncloud/mozilla_sync/archive/v$_mozillasyncver.tar.gz $pkgname-music-$_musicver.zip::https://github.com/owncloud/music/releases/download/v$_musicver/music.zip $pkgname-pdfviewer-$_pdfviewerver.tar.gz::https://github.com/owncloud/files_pdfviewer/archive/v$_pdfviewerver.tar.gz $pkgname-tasks-$_tasksver.tar.gz::https://github.com/owncloud/tasks/archive/v$_tasksver.tar.gz owncloud.config.php owncloud-6-always-return-true-isSetLocaleWorking.patch " pkggroups="www-data" #_builddir="$srcdir"/core-$pkgver _builddir="$srcdir"/$pkgname _ocbasedir="/var/lib/owncloud" _ocdatadir="$_ocbasedir/data" _ocwwwdir="/usr/share/webapps/owncloud" _ocappsdir="$_ocwwwdir/apps" _occonfdir="/etc/owncloud" prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg "Applying patch $i"; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" } package() { cd "$_builddir" mkdir -p "$pkgdir"${_occonfdir} mkdir -p "$pkgdir"${_ocdatadir} mkdir -p "$pkgdir"${_ocwwwdir} rm -rf config data mv * "$pkgdir"${_ocwwwdir} || return 1 chmod +x "$pkgdir"${_ocwwwdir}/occ || return 1 ln -s $_occonfdir "$pkgdir"${_ocwwwdir}/config || return 1 install -m660 ../owncloud.config.php "$pkgdir"${_occonfdir}/config.php install -m664 .htaccess "$pkgdir"${_ocwwwdir}/.htaccess for dir in \ "$pkgdir"${_occonfdir} \ "$pkgdir"${_ocdatadir} \ "$pkgdir"${_ocappsdir}; do chown -R :www-data $dir || return 1 chmod 770 $dir || return 1 done } pgsql() { arch="noarch" pkgdesc="ownCloud PostgreSQL support" depends="owncloud php-pgsql php-pdo_pgsql php-pear-mdb2-driver-pgsql" mkdir -p "$subpkgdir"${_ocwwwdir} } sqlite() { arch="noarch" pkgdesc="ownCloud SQLite support" depends="owncloud php-sqlite3 php-pdo_sqlite" mkdir -p "$subpkgdir"${_ocwwwdir} } mysql() { arch="noarch" pkgdesc="ownCloud MySQL support" depends="owncloud php-mysql php-pdo_mysql php-pear-mdb2-driver-mysql" mkdir -p "$subpkgdir"${_ocwwwdir} } plugins() { arch="noarch" pkgdesc="ownCloud 3rdparty plugins" depends="owncloud" mkdir -p "$subpkgdir"${_ocwwwdir} || return 1 mv "$pkgdir"${_ocwwwdir}/3rdparty "$subpkgdir"${_ocwwwdir} } _mv_app() { mkdir -p "$subpkgdir"${_ocappsdir} || return 1 if [ "$1" = "pkg" ]; then mv "$pkgdir"${_ocappsdir}/$2 "$subpkgdir"${_ocappsdir} elif [ "$1" = "src" ]; then local appname="${subpkgname#$pkgname-}" mv "$srcdir"/$2 "$subpkgdir"${_ocappsdir}/$appname fi chown -R :www-data "$subpkgdir"${_ocappsdir} || return 1 chmod 770 "$subpkgdir"${_ocappsdir} || return 1 } contacts() { arch="noarch" pkgdesc="ownCloud contacts" depends="owncloud" _mv_app src contacts-$_contactsver } calendar() { arch="noarch" pkgdesc="ownCloud calendar" depends="owncloud" _mv_app src calendar-$_calendarver } documents() { arch="noarch" pkgdesc="ownCloud integrated documents editor" depends="owncloud" _mv_app src documents-$_documentsver } encryption() { arch="noarch" pkgdesc="ownCloud integrated encryption support" depends="owncloud php-openssl" _mv_app pkg encryption } external() { arch="noarch" pkgdesc="ownCloud integrated external storage support" depends="owncloud php-curl php-ftp" _mv_app pkg files_external } ldap() { arch="noarch" pkgdesc="ownCloud integrated LDAP authentication" depends="owncloud php-ldap" _mv_app pkg user_ldap } mozilla_sync() { arch="noarch" pkgdesc="ownCloud Mozilla Sync app" depends="owncloud" _mv_app src mozilla_sync-$_mozillasyncver } music() { arch="noarch" pkgdesc="ownCloud music app" depends="owncloud" _mv_app src music # Correct world-writable directories find "${subpkgdir}${_ocappsdir}" -type d -exec chmod 775 {} \; } pdfviewer() { arch="noarch" pkgdesc="ownCloud integrated PDF viewer" depends="owncloud" _mv_app pkg files_pdfviewer } tasks() { arch="noarch" pkgdesc="ownCloud tasks" depends="owncloud" _mv_app src tasks-$_tasksver } texteditor() { arch="noarch" pkgdesc="ownCloud integrated text editor" depends="owncloud" _mv_app pkg files_texteditor } videoviewer() { arch="noarch" pkgdesc="ownCloud integrated video viewer" depends="owncloud" _mv_app pkg files_videoviewer } md5sums="46d1c8667e3f5a7735122e4e8fc7fcc6 owncloud-8.2.3.tar.bz2 4a1fa26510274473716b4a55395c3591 owncloud-contacts-8.0.10.tar.gz 8a59d4d58add424da2dd55d074a6cc72 owncloud-calendar-0.8.1.tar.gz ccef53e01c7c82a886f9739693e65817 owncloud-documents-8.2.3.tar.gz 8be2f9b3b1dcc967b36a2f040ef2ee33 owncloud-texteditor-8.2.3.tar.gz e98fdb10ff4139b4259e2a183a88975a owncloud-mozilla_sync-1.4.tar.gz 9e227b8965a283b15a3fbd4787c1c781 owncloud-music-0.3.9.zip ea3578680d55a7b72c80d70011b8be77 owncloud-pdfviewer-8.2.3.tar.gz b12ac39aead677329675c27bb549374a owncloud-tasks-0.8.1.tar.gz 7d29c52fb9cea2537b56a534a8385f19 owncloud.config.php f497dbf3a67d14fc9049ca680673c805 owncloud-6-always-return-true-isSetLocaleWorking.patch" sha256sums="3cec2a7bf2a7babebc8bf9ebd39e538a707a7a3baca97d883d539f2b89c01c73 owncloud-8.2.3.tar.bz2 d5d6a0dab49ac52c7450f42ac98d914b30ce709229a659148b9fb8222d1cdc25 owncloud-contacts-8.0.10.tar.gz ed52d61d29cb1169aac82a2306bf554b2007278ff17f2ab4af6bec1a8c312789 owncloud-calendar-0.8.1.tar.gz 2308eea49a7cf1bd707409be62348a22cf207bfdf49694d30b8ede99fad15e11 owncloud-documents-8.2.3.tar.gz 159fc58a2b75b5f07c048db9ca3b4eb4d6d543a36a4706586aaadedaa3092292 owncloud-texteditor-8.2.3.tar.gz 314621c290daee93429d881e78d8cae13faaca3205b23860f06450633c5c3b6a owncloud-mozilla_sync-1.4.tar.gz c54bfcca69316374b61c384f54411a586f6af9d5967df2c13f5a7056ffbc1f69 owncloud-music-0.3.9.zip 6e5d4c2768b4ac2fd997fea801f75d8082228285101b76c5b2ab469578c8cff6 owncloud-pdfviewer-8.2.3.tar.gz 1120f7c45c98b3bf790e0842808c1c24e5482bd7f7a5667be2216d0f4e1af2f4 owncloud-tasks-0.8.1.tar.gz 7ec1e79c6dc8c154d9b7d4c6477a659be55798091f3e9d6c07fd3fcc16332692 owncloud.config.php 3466ffbd22d4a9f04f4df862f3fb2f695fd1ca4bc6fb4b6a56258958064d5762 owncloud-6-always-return-true-isSetLocaleWorking.patch" sha512sums="56cd2a6092568721730dd3826784fa3cb103c799dcf8a635e9383aac4c1a2117223187d57f875e0c97714e29cf39f7d49181f08d56fad0adaa8a78c4225f329a owncloud-8.2.3.tar.bz2 7d5a751f69e0ebd92bb472481e0402556728c2587df068665ce357c7e18f97e0f80fe30f27588d0617819efd5c2a86f0e8c3c8b578113d412c55652bd9d10186 owncloud-contacts-8.0.10.tar.gz 4dacd059a5df307f7e377ae8418ffe1d559aa6ceaf762d74ff3d2370fa921b5c82eb4be3457e87f6be869b8d0ea5c4f560a9fcc60c2c82d75369157d9384be6b owncloud-calendar-0.8.1.tar.gz a04d56f7fa2bdad93bc7f52a3e99147ecaf76c15dcd1914d5d48e09b5d19e3d619c155013ae47ab6d66219971094ec3601cfa44327c0af8396ca3d60ea66bdc3 owncloud-documents-8.2.3.tar.gz 05b8ddcf6c63bf457a0989052b010963c880e9b438d3debe2ea4431b31dec0b369c77477397176f7b6dfb6f46ff4d1a7d2d606f5dacba19399ffb2d6a8249cdd owncloud-texteditor-8.2.3.tar.gz a279a6e0109aa3b17442265358284583d846f88afa3746005792b93dffbd3396dc1277ce892b2a226496038ec6e8ec7ef2295b981ef8acf1a3fa3c32886623d0 owncloud-mozilla_sync-1.4.tar.gz 7bc2be0bf795dc6c413db5fdad4777eba3b9800e8cae3b8cc05703193d7947a737786551f5523be71e7509ef62396134852268dca75dfdb983b14c2c94e2a584 owncloud-music-0.3.9.zip 7bad85921b5209dcbfb8d3f9e25569891f897744e6796271803f0a7ef624f25849373125224728da8b056893716f0b67011ca759dce151726105a5e01ac93681 owncloud-pdfviewer-8.2.3.tar.gz 5b0880cd86588142d32f77dbcdd3fe7406541b790012528ba8efdceb62d0638a7d4b11e91b5fd3f0c5b4f5cfb3ae8213b28a41b4e7fa0fa0a8e978163175ec00 owncloud-tasks-0.8.1.tar.gz a1142059f860ee1245ee2e324f206e1ab509ee6fcbd9020f793be557117ac5f6a8ba0e7a1677250df8662c19460e88b6ca2a24b40c14007d18535ab5110280e6 owncloud.config.php 4b2038786571c62129d748bb71262a7cbc966cf4b97482f13bcedaa36fcfa343080a464fc74463a9bd6615c99a10cd590b91cacead62632db36bfd8940173d13 owncloud-6-always-return-true-isSetLocaleWorking.patch"