summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 461743f21a6d5fadbeb1489989d7f339a982f67f (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
# Maintainer : coxackie
# Contributor: plague-doctor

pkgname=pcloudcc-git
_pkgname=${pkgname%-*}
pkgver=r1470.331003a
pkgrel=1
pkgdesc="A simple linux console client for pCloud cloud storage."
provides=("pcloudcc")
conflicts=("pcloudcc")
arch=('x86_64')
url="https://github.com/pcloudcom/console-client"
license=('GPL')
depends=('zlib' 'fuse2' 'gcc-libs')
makedepends=('git' 'cmake' 'boost' 'systemd')

source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')

pkgver() {
    cd "$_pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_pkgname/pCloudCC/lib/pclsync"
  make clean
  make fs
  cd "$srcdir/$_pkgname/pCloudCC/lib/mbedtls"
  cmake .
  make clean
  make
  cd "$srcdir/$_pkgname/pCloudCC"
  cmake .
  make
}

package() {
  install -d "$pkgdir/usr/"{bin,lib}
  install -Dm775 "$srcdir/pcloudcc/pCloudCC/pcloudcc" "$pkgdir/usr/bin/pcloudcc"
  install -Dm664 "$srcdir/pcloudcc/pCloudCC/libpcloudcc_lib.so" "$pkgdir/usr/lib/libpcloudcc_lib.so"
}