# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne # SPDX-License-Identifier: ISC # Maintainer: Grégoire Duchêne pkgname=go-import-redirect pkgver=0.4.0 pkgrel=1 arch=(x86_64) url=https://github.com/gduchene/go-import-redirect license=(custom:ISC) makedepends=(go) source=(git+https://github.com/gduchene/go-import-redirect.git#tag=v${pkgver}) sha256sums=(SKIP) build() { cd ${pkgname} go build } package() { cd ${pkgname} install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} install -Dm644 systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service install -Dm644 systemd/${pkgname}.socket ${pkgdir}/usr/lib/systemd/system/${pkgname}.socket install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md install -Dm644 archlinux/${pkgname}.conf ${pkgdir}/usr/share/doc/${pkgname}/examples/${pkgname}.conf install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }