From d39af6fdf053bc92845ea59c125b9224177d9117 Mon Sep 17 00:00:00 2001 From: plan5 <30434574+plan5@users.noreply.github.com> Date: Mon, 17 May 2021 16:59:10 +0200 Subject: [PATCH] [gocryptfs] Add gocryptfs package (build without openssl) (#318) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit *Add gocryptfs package Co-authored-by: plan5 Co-authored-by: Nathaniel van Diepen Co-authored-by: Mattéo Delabre <1370040+matteodelabre@users.noreply.github.com> --- package/gocryptfs/package | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 package/gocryptfs/package diff --git a/package/gocryptfs/package b/package/gocryptfs/package new file mode 100644 index 000000000..cf2dad6da --- /dev/null +++ b/package/gocryptfs/package @@ -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/ +}