# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=nextcloud-client _realname=client_theming pkgver=2.3.1 pkgrel=1 pkgdesc="Nextcloud Desktop Client" url="https://github.com/nextcloud/client_theming" arch="all" license="GPL2" depends= depends_dev= makedepends="$depends_dev cmake qt5-qttools-dev qt5-qtwebkit-dev qt5-qtkeychain-dev" install= subpackages="$pkgname-dev" source="owncloud-client-$pkgver.tar.gz::https://github.com/owncloud/client/archive/v$pkgver.tar.gz $pkgname-$pkgver.tar.gz::https://github.com/nextcloud/$_realname/archive/v$pkgver.tar.gz" builddir="$srcdir"/client-$pkgver build() { cd "$builddir" # mkdir _build.tmp && cd _build.tmp cmake \ -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname \ -DOEM_THEME_DIR="$srcdir/$_realname-$pkgver/nextcloudtheme" make all || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install # remove the 2 lines below (and this) if there is no init.d script # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname } sha512sums="582a017431da41a0bf2ad745e24560b0641ac815c6c296b2a5bdfa4e56e90a4b141392834e3b30f452d2ad9399290416894d349726a75d916e2ed48ac53343d4 owncloud-client-2.3.1.tar.gz f8210c8cc08e0bfb80e63b18af305c2a8e2309f673caca5bc748c130d960d444ab2db3fad3e43dbfffbe072748c85e15a50d0ebe1fd491dec7553ac8d9552cfe nextcloud-client-2.3.1.tar.gz"