# Contributor: Leonardo Arena # Maintainer: ScrumpyJack pkgname=owncloud-client pkgver=2.2.4 pkgrel=1 pkgdesc="ownCloud Desktop Client" url="https://github.com/owncloud/client" 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="$pkgname-$pkgver.tar.gz::https://github.com/owncloud/client/archive/v$pkgver.tar.gz" builddir="$srcdir"/client-$pkgver build() { cd "$builddir" cmake \ -DCMAKE_BUILD_TYPE="Release" \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_SYSCONFDIR=/etc/$pkgname 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 } md5sums="144022a1773df0c4a25686a043bf4b1f owncloud-client-2.2.4.tar.gz" sha256sums="416e8a003ba95387cb5e22fac909c2c2ee21765de413a26397027d36ad89e39b owncloud-client-2.2.4.tar.gz" sha512sums="95de459bf818201d92b55ea0e4a0c2f6aa8f8d5fd57de2c937b7679bfafd4f98e64a793b00bbc5654da36c06a8c78f8f85aad449b5190b82d8a7f529f8714018 owncloud-client-2.2.4.tar.gz"