aboutsummaryrefslogtreecommitdiffstats
path: root/testing/owncloud-client/APKBUILD
blob: b67098ffa507de6f697d850a2b5fc5a507502334 (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
45
46
47
48
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=owncloud-client
pkgver=1.8.1
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/v1.8.1.tar.gz"


_builddir="$srcdir"/client-$pkgver

prepare() {
	cd "$_builddir"
	mkdir build
	# apply patches here
}

build() {
	cd "$_builddir/build"
	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/build"
	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="1730025ec2f922946fa4ebfda819f0f7  owncloud-client-1.8.1.tar.gz"
sha256sums="3a30da888ca9705892b4e7b313ad0aeb4525fb97b83453540a147841f7f136bc  owncloud-client-1.8.1.tar.gz"
sha512sums="f3b99ddbb64871a6e05144f5c2129323e368da6c62adad1a3810915ad4777a950636fb0deda4014b2ba27a738c03b0654ec95a6ade4afcb4dd6df0cfbaecce78  owncloud-client-1.8.1.tar.gz"