2022-11-20 03:08:37 -06:00
|
|
|
name='gocryptfs'
|
|
|
|
version=VERSION
|
2023-07-30 13:40:59 -05:00
|
|
|
release=2
|
2022-11-20 03:08:37 -06:00
|
|
|
desc='Encrypted overlay filesystem written in Go'
|
2022-11-22 01:53:50 -06:00
|
|
|
homepage='https://github.com/rfjakob/gocryptfs'
|
|
|
|
architectures=('amd64')
|
2022-11-20 03:08:37 -06:00
|
|
|
maintainer='SinTan1729'
|
|
|
|
license=('MIT')
|
2022-11-20 12:57:57 -06:00
|
|
|
provides=('gocryptfs' 'gocryptfs-xray')
|
|
|
|
conflicts=('gocryptfs' 'gocryptfs-xray')
|
2022-11-20 14:48:47 -06:00
|
|
|
git_repo='rfjakob/gocryptfs'
|
2022-11-20 03:08:37 -06:00
|
|
|
|
|
|
|
sources=()
|
|
|
|
checksums=()
|
|
|
|
|
|
|
|
version() {
|
2023-09-12 17:12:43 -05:00
|
|
|
printf "$(curl -sL "https://api.github.com/repos/${git_repo}/releases/latest" | jq -r '.tag_name')"
|
2022-11-20 03:08:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-11-21 23:57:28 -06:00
|
|
|
# Pull sources
|
2022-11-22 17:37:15 -06:00
|
|
|
echo "Pulling ${name} ${version}"
|
2022-11-22 00:52:56 -06:00
|
|
|
curl -L "https://github.com/${git_repo}/releases/latest/download/${name}_${version}_linux-static_${ARCH}.tar.gz" -o ${name}.tar.gz
|
2022-11-21 23:57:28 -06:00
|
|
|
# Build package
|
2022-11-22 17:37:15 -06:00
|
|
|
echo "Creating the package"
|
2022-11-21 23:57:28 -06:00
|
|
|
tar -xzf "${name}.tar.gz" -C .
|
|
|
|
# Binaries
|
2023-09-12 17:12:43 -05:00
|
|
|
install-binary "./${name}"
|
|
|
|
install-binary "./${name}-xray"
|
2022-11-21 23:57:28 -06:00
|
|
|
# Manpages
|
2023-09-12 17:12:43 -05:00
|
|
|
install-manual "./${name}.1"
|
|
|
|
install-manual "./${name}-xray.1"
|
2022-11-20 03:08:37 -06:00
|
|
|
}
|