Date: Monday, March 7, 2022 @ 00:04:31 Author: svenstaro Revision: 1144147
archrelease: copy trunk to community-x86_64 Added: upterm/repos/community-x86_64/ upterm/repos/community-x86_64/PKGBUILD (from rev 1144146, upterm/trunk/PKGBUILD) ----------+ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) Copied: upterm/repos/community-x86_64/PKGBUILD (from rev 1144146, upterm/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2022-03-07 00:04:31 UTC (rev 1144147) @@ -0,0 +1,53 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +# Contributor: Sýlvan Heuser <sylvan.heu...@gmx.net> +pkgname=upterm +pkgver=0.7.5 +pkgrel=1 +pkgdesc='Secure Terminal Sharing, an alternative to tmate' +arch=('x86_64') +url="https://github.com/owenthereal/upterm" +license=('Apache') +depends=('glibc') +makedepends=('go') +optdepends=() +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/owenthereal/upterm/archive/v${pkgver}.tar.gz" + https://github.com/owenthereal/upterm/commit/4ab9a1e2877137eaeac0b7d3362e3e1419f99119.patch) +sha256sums=('a66026d3762a4c41add52873373f21b8d140cb73d861913bccdd67285f45febb' + '8813217d9029b3207cf2571c25df8cca1eddb8c31e5be45a6cf61d5df210b905') + +prepare() { + cd "${pkgname}-${pkgver}" + + patch -Np1 -i "${srcdir}"/4ab9a1e2877137eaeac0b7d3362e3e1419f99119.patch + mkdir -p build/ +} + +build() { + cd "${pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o build ./cmd/... + build/gendoc +} + +check() { + cd "${pkgname}-${pkgver}" + go test ./... +} + +package() { + cd "${pkgname}-${pkgver}" + install -Dm755 "build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + install -Dm755 "build/${pkgname}d" "${pkgdir}/usr/bin/${pkgname}d" + install -dm755 "${pkgdir}/usr/share/man" + cp -av etc/man/* "${pkgdir}/usr/share/man/" + install -dm755 "${pkgdir}/usr/share/bash-completion/completions" + install -Dm644 "etc/completion/upterm.bash_completion.sh" "${pkgdir}/usr/share/bash-completion/completions/upterm" + install -dm755 "$pkgdir/usr/share/zsh/site-functions" + install -Dm644 "etc/completion/upterm.zsh_completion" "${pkgdir}/usr/share/zsh/site-functions/_upterm" +} + +# vim:set ts=2 sw=2 et: