blob: 7c58b24ae730e5ec7ec91e6b4ff0f5552ec026d7 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: DenBrahe <denbrahe at hotmail dot com>
# Contributor: rubenvb <vanboxem dot ruben at gmail dot com>
#
# Based on stack-client package
pkgname=stack-cloud-client
pkgver=2.4.1
pkgrel=1
pkgdesc="The STACK Client provides file sync to desktop clients. Renamed due to name clash with Haskell Tool Stack"
arch=('x86_64')
url='https://www.transip.nl/stack/'
license=(GPL2)
depends=('qtkeychain' 'qt5-webkit' 'hicolor-icon-theme' 'xdg-utils')
optdepends=('python2-nautilus: integration with Nautilus' 'nemo-python:
integration with Nemo')
makedepends=('cmake' 'qt5-tools')
conflicts=('stack-client-bin' 'stack-client')
source=("client-v${pkgver}.tar.gz::https://github.com/owncloud/client/archive/v${pkgver}.tar.gz"
"http://mirror.transip.net/stack/software/source/stack-client-source-${pkgver}.tar.gz"
"cmake_qt5.patch"
"rename.patch")
sha256sums=('89a29ce91f49160cae4f04129a9d1e0757b665300db68d4449849c847627d337'
'802b9032408118cff2852965f8c0ae87733205db86a8d386c2a4fb3c43e9a4d8'
'25ab3c8010f5b031bad4b671d80487889506b43e42b3f16f2329e58bfabe5fae'
'30188b01acf74ca4c32540e6c31a10e380fad6a0e3aecfbbf07c21fcba5252a7')
prepare() {
patch -p1 < ${srcdir}/cmake_qt5.patch
cd client-2.4.1
for file in ${srcdir}/patches/*
do
patch -p1 < ${file}
done
cd ${srcdir}/transiptheme
patch -Np1 -i ${srcdir}/rename.patch
}
build() {
mkdir -p stack-client-build
cd stack-client-build
cmake ../client-2.4.1 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DLINUX_PACKAGE_SHORTNAME=stack-cloud \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_SYSCONFDIR=/etc/${pkgname} \
-DWITH_DOC=FALSE \
-DOEM_THEME_DIR=${srcdir}/transiptheme \
-DNO_SHIBBOLETH=ON \
-DQTKEYCHAIN_LIBRARY=/usr/lib/libqt5keychain.so \
-DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qt5keychain/ \
-DMIRALL_VERSION_SUFFIX= \
-DMIRALL_VERSION_BUILD=70896
make
}
package() {
cd ${srcdir}/stack-client-build
make DESTDIR=${pkgdir} install
}
|