blob: 8a1736c2069921cd8b465c83d128f778ba5a5856 (
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
|
# Contributor: Oleg `Kanedias` Chernovskiy <kanedias@xaker.ru>
pkgname=marcfs-git
pkgver=0.4.r1.033bf1a
pkgrel=1
pkgdesc="FUSE-based file system backed by Mail.ru Cloud storage"
arch=('i686' 'x86_64')
url="https://gitlab.com/Kanedias/MARC-FS"
license=('GPL3')
depends=('fuse2' 'curl' 'jsoncpp')
optdepends=('jemalloc: to reduce memory pressure')
makedepends=('make' 'cmake' 'gcc')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://gitlab.com/Kanedias/MARC-FS.git"
"git+https://github.com/JosephP91/curlcpp.git"
"git+https://github.com/google/googletest.git")
noextract=()
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.contrib/curlcpp.url $srcdir/curlcpp
git config submodule.contrib/googletest.url $srcdir/googletest
git submodule update
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir/${pkgname%-git}"
cd build
make DESTDIR="$pkgdir/" install
}
|