# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne # SPDX-License-Identifier: ISC # Maintainer: Grégoire Duchêne pkgname=fwdsms pkgver=0.1.0 pkgrel=2 arch=(x86_64) url=https://github.com/gduchene/fwdsms license=(custom:ISC) makedepends=(go) source=(git://github.com/gduchene/fwdsms.git#tag=v${pkgver}) sha256sums=(SKIP) build() { cd ${pkgname} go build ./cmd/${pkgname} } package() { cd ${pkgname} install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} install -Dm644 configs/example.yaml ${pkgdir}/etc/${pkgname}.yaml install -Dm644 deployments/systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }