# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=nextcloud-client _realname=client_theming pkgver=2.3.2 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="33c2ae87794db3bce8293a07098f02b0b8434daf81f77d4108c7a5f55388a8b6712847b4409edd75a7b91f42a73846704302d67735fb05b923c09d021e8b3910 owncloud-client-2.3.2.tar.gz 0447a3e5ee3338cb98b9d503a94d32c926f9092a25fee11e3686e5d662362137dce09865350cdc3c9af62ac8a6ebfa7fcd00f817edbb10189512a6df8e587628 nextcloud-client-2.3.2.tar.gz"