summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 78a0226804617e962ecbfcdc1950b5080fdec9b6 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libcloudstorage-git
pkgver=1.2.r386.gff4e9f0
pkgrel=1
pkgdesc="C++ library providing access to files located in various cloud services"
arch=('i686' 'x86_64')
url="https://code.videolan.org/videolan/libcloudstorage"
license=('LGPL')
depends=('boost-libs' 'crypto++' 'curl' 'fuse3' 'jsoncpp' 'libmicrohttpd' 'mega-sdk' 'tinyxml2')
makedepends=('git' 'boost')
provides=("libcloudstorage=$pkgver")
conflicts=('libcloudstorage')
source=("git+https://code.videolan.org/videolan/libcloudstorage.git"
        "0001-Fix-compilation-with-newer-crypto.patch")
sha256sums=('SKIP'
            '6e44c6986af6b1717fca2287324c58264266ab8e80d5aabb55f50f04dd7f22de')


prepare() {
  cd "libcloudstorage"

  patch -Np1 -i "$srcdir/0001-Fix-compilation-with-newer-crypto.patch"

  git submodule update --init --recursive
}

pkgver() {
  cd "libcloudstorage"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libcloudstorage"

  ./bootstrap
  ./configure \
    --prefix="/usr"
  make
}

check() {
  cd "libcloudstorage"

  make check
}

package() {
  cd "libcloudstorage"

  make DESTDIR="$pkgdir" install
}