Skip to content

Commit

Permalink
[gocryptfs] Add gocryptfs package (build without openssl) (#318)
Browse files Browse the repository at this point in the history
*Add gocryptfs package

Co-authored-by: plan5 <plan5 30434574+plan5@users.noreply.github.com>
Co-authored-by: Nathaniel van Diepen <Eeems@users.noreply.github.com>
Co-authored-by: Mattéo Delabre <1370040+matteodelabre@users.noreply.github.com>
  • Loading branch information
4 people authored May 17, 2021
1 parent f965def commit d39af6f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions package/gocryptfs/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT

pkgnames=(gocryptfs)
pkgdesc="An encrypted overlay filesystem written in Go."
url="https://nuetzlich.net/gocryptfs/"
_srcver=2.0-beta2
pkgver="$_srcver"-1
timestamp=2021-03-22
section=utils
maintainer="plan5 <30434574+plan5@users.noreply.github.com>"
license=MIT

makedepends=()
installdepends=(fuse fuse-utils)

image=golang:v1.5

source=(
https://github.com/rfjakob/gocryptfs/archive/v"$_srcver".zip
)

sha256sums=(
3d66368cfc79a300de5a22fe01788d0c702f9107731db63fcd8850157d105cc0
)

prepare() {
# Official build script runs compiled binary to show version.
# This will cause the build to fail if built on another architecture
# So the line will be removed here.
sed -i "s/^.\/gocryptfs.*//" "$srcdir"/build.bash
}

build() {
GOARCH=arm GOARM=7 ./build-without-openssl.bash
}

package() {
mkdir -p "$pkgdir"/opt/bin
install -D -m 755 "$srcdir"/gocryptfs "$pkgdir"/opt/bin/
}

0 comments on commit d39af6f

Please sign in to comment.