summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08c21a926c877b35c676027bd54c7704f9c06f10 (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
# Maintainer Paweł Wegner <echo bGVtb3VyaW5AZ21haWwuY29tCg== | base64 -d>

pkgname=coro-cloudstorage-fuse
pkgver=1.01
pkgrel=1
pkgdesc="Cloud Storage FUSE mount"
url="https://github.com/lemourin/${pkgname}"
license=('custom')
_commit="6baafd620d8cd9b357c0e78d76690f97a5a341b7"
_git=${url}
arch=('x86_64')
makedepends=(
   cmake
   ninja
   clang
   git
   pkg-config
)
depends=(
   ffmpeg
   fmt
   crypto++
   fuse3
   curl
   libevent
   pugixml
   nlohmann-json
)

prepare() {
    cd $srcdir/
    rm -rf "${pkgname}"
    git clone "${_git}" "${pkgname}"
    cd "${pkgname}"
    git submodule update --init contrib/coro-cloudstorage
    cd contrib/coro-cloudstorage
    git submodule update --init contrib/coro-http
}

build() {
    cd $srcdir/
    cmake -G Ninja -B build -S "${pkgname}" \
        -DCMAKE_CXX_COMPILER=clang++ \
        -DCMAKE_C_COMPILER=clang \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -DBUILD_SHARED_LIBS=ON \
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
        -Wno-dev
    cmake --build build
}

package() {
    cd $srcdir/
    DESTDIR=${pkgdir}/ cmake --install build
}

#vim: syntax=sh