aboutsummaryrefslogtreecommitdiffstats
path: root/testing/owncloud-client/APKBUILD
blob: d94db9373c0e53c8dc35f028825a2513d7b094f4 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=owncloud-client
pkgver=2.3.3
pkgrel=0
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
}

sha512sums="f037987307cc0f66e7135114557b91bfae7e66ab9b3cf97d7b4f3a28de53fe651ae306a27fe01d14d6505da55eddb540b4e8ec2636c4b25f628da8d873ed2b0e  owncloud-client-2.3.3.tar.gz"