1 # Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
3 # Contributor: Mikuro Kagamine <mikurok@forgecrushing.com>
8 pkgdesc='Easily and securely send things from one computer to another.'
10 url="https://github.com/schollz/${pkgname}"
14 source=("${url}/releases/download/v${pkgver}/${pkgname}_${pkgver}_src.tar.gz")
15 sha256sums=('012e8e836c76e3432fecac924e4d44a5bee73cc2fa30f4ecfb1b322bcd83f089')
18 cd "${pkgname}-${pkgver}"
19 export CGO_CPPFLAGS="${CPPFLAGS}"
20 export CGO_CFLAGS="${CFLAGS}"
21 export CGO_CXXFLAGS="${CXXFLAGS}"
22 export CGO_LDFLAGS="${LDFLAGS}"
23 export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=vendor -modcacherw -buildvcs=false"
28 cd "${pkgname}-${pkgver}"
33 cd "${pkgname}-${pkgver}"
34 install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}"
35 install -Dm644 -t "${pkgdir}/usr/lib/systemd/system/" "${pkgname}.service"
36 install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE