summaryrefslogblamecommitdiff
path: root/user/nextcloud-client/APKBUILD
blob: 4a0317bce3fac7ea8a45754d6e0e93cd5c99f4f6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13


                                                      
            
        







                                                                                                                                                                                                              
                                                                                             
                          


                                
                                  

         



                                                   
                                               
                                        

                                         



            


                                                                               


           
                                      



                                                           

 
                                                                                                                                                                           
                                                                                                                                                    

                                                                                                                                                           
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=nextcloud-client
pkgver=2.6.4
pkgrel=1
pkgdesc="Nextcloud desktop client"
url="https://github.com/nextcloud/desktop"
arch="all"
license="GPL-2.0+ AND LGPL-2.1+ AND Public-Domain AND MIT AND (Custom:Digia-Qt OR LGPL-2.1-only WITH Qt-LGPL-exception-1.1) AND (Custom:Digia-Qt OR LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR GPL-3.0-only)"
depends=""
makedepends="cmake qt5-qttools-dev qtkeychain-dev zlib-dev
	openssl-dev sqlite-dev qt5-qtsvg-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/nextcloud/desktop/archive/v$pkgver.tar.gz
	no-webengine.patch
	test-fix-include.patch
	fix-missing-header.patch
	"
builddir="$srcdir/desktop-$pkgver"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DWITH_CRASHREPORTER=bool:OFF \
		-DUNIT_TESTING=bool:ON \
		-DNO_SHIBBOLETH=bool:ON \
		-DNO_WEBENGINE=bool:ON .
	make
}

check() {
	# ChunkingTestNg fails sporadically when run with the other tests based
	# on a timeout, but runs fine on its own
	make test || make test ARGS="--rerun-failed --output-on-failure"
}

package() {
	make DESTDIR="$pkgdir" install
	cat > "$pkgdir"/etc/Nextcloud/Nextcloud.conf <<-EOF
		[General]
		skipUpdateCheck=true
	EOF
}

sha512sums="849bf9bfa6a50342f6b58e805dc72ef342cb5f3e2e27d8f45d6a48759b1956dec194fb376b9a6b760df724f01eec3a22aadaa439f03e5166b1b2afb5454e40f1  nextcloud-client-2.6.4.tar.gz
38dd89ca2bf67294187bb4d5c59cdf725ec3b502f23bf4a60210e85c66f6a7e00da0e0b41775bc138159bed300dc60a1f179d1d6ad3b7a27e1aadf4f0576f348  no-webengine.patch
c14054e6dc228ca77a659371b3c151e0551477fce3a2678a54da4ba73adbcf972a78114c5649adc3dc813fb01b55bbb812620caac0bc0460519424c2caa6c81f  test-fix-include.patch
e5012f375a0446a532f1302f432921e7bb610fb1aebe99d074605ddc06e32e7fa261a4eb56e1bd20b52610830eb054147e95c35a105bf413cedb1ad2edd6e381  fix-missing-header.patch"