aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud-client/APKBUILD
blob: 84e25a4de73cb0afc0568b57fceb6f59448ad76d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
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"