void-packages/srcpkgs/EternalTerminal/template
2021-05-24 14:42:42 -04:00

34 lines
906 B
Bash

# Template file for 'EternalTerminal'
pkgname=EternalTerminal
version=6.0.13
revision=3
wrksrc="${pkgname}-et-v${version}"
build_style=cmake
hostmakedepends="protobuf"
makedepends="gflags-devel libsodium-devel protobuf-devel"
short_desc="Re-Connectable secure remote shell"
maintainer="Nathan Owens <ndowens@artixlinux.org>"
license="Apache-2.0"
homepage="https://eternalterminal.dev/"
distfiles="https://github.com/MisterTea/EternalTerminal/archive/et-v${version}.tar.gz"
checksum=728c3a444d666897c710e33fe473d8d289263a59574451b13aa53ec3c6ac88b3
system_accounts="_eternal"
patch_args=-Np1
LDFLAGS="-lgflags"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" libexecinfo-devel"
fi
post_patch() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
# Use external libexecinfo
vsed -i CMakeLists.txt \
-e '/execinfo/!s/CORE_LIBRARIES util resolv/& execinfo/'
fi
}
post_install() {
vsv etserver
}