2022-11-20 03:08:37 -06:00
|
|
|
name='gocryptfs'
|
|
|
|
version=VERSION
|
|
|
|
release=1
|
|
|
|
desc='Encrypted overlay filesystem written in Go'
|
|
|
|
homepage='https://github.com/rfjakob/gocryptfs/'
|
|
|
|
architectures=('amd64')
|
|
|
|
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() {
|
|
|
|
printf "$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
vers="$(curl --silent "https://api.github.com/repos/${git_repo}/releases/latest" | grep -Eo '"tag_name": "v(.*)"' | sed -E 's/.*"([^"]+)".*/\1/')"
|
|
|
|
echo Installing ${name} ${vers}
|
2022-11-20 12:57:57 -06:00
|
|
|
curl -L "https://github.com/${git_repo}/releases/download/${vers}/${name}_${vers}_linux-static_${ARCH}.tar.gz" -o ${name}.tar.gz
|
2022-11-20 03:08:37 -06:00
|
|
|
tar xzf "${name}.tar.gz" -C .
|
|
|
|
install -Dm755 "./${name}" "${pkgdir}/usr/local/bin/${name}"
|
|
|
|
install -Dm755 "./${name}-xray" "${pkgdir}/usr/local/bin/${name}-xray"
|
|
|
|
install -Dm644 "./${name}.1" "${pkgdir}/usr/local/share/man/man1/${name}.1"
|
|
|
|
install -Dm644 "./${name}-xray.1" "${pkgdir}/usr/local/share/man/man1/${name}-xray.1"
|
|
|
|
}
|
2022-11-20 12:57:57 -06:00
|
|
|
|