blob: bf128e905420cc4adb3449bf6e55e8ed80d44bc7 (
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
|
pkgname=profuse-git
pkgver=r7.a9b59ca
pkgrel=1
pkgdesc="Proton Drive FUSE client for Linux — mounts your Proton Drive as a local filesystem"
arch=('x86_64' 'aarch64')
url="https://github.com/nearwood/profuse"
license=('GPL-3.0-or-later')
depends=(
'fuse3'
'libsecret'
)
makedepends=(
'go'
'git'
)
optdepends=(
'gnome-keyring: Secret Service backend for GNOME desktops'
'kwallet: Secret Service backend for KDE desktops'
)
provides=('profuse')
conflicts=('profuse')
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/profuse"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/profuse"
export CGO_ENABLED=0
export GOPATH="$srcdir/gopath"
export GOMODCACHE="$GOPATH/pkg/mod"
go build \
-trimpath \
-mod=readonly \
-modcacherw \
-ldflags "-s -w -X main.version=${pkgver}" \
-o profuse \
./cmd/
}
package() {
cd "$srcdir/profuse"
install -Dm755 profuse \
"$pkgdir/usr/bin/profuse"
install -Dm644 contrib/systemd/profuse.service \
"$pkgdir/usr/lib/systemd/user/profuse.service"
install -Dm644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|