From d10731043bfd7429ebd22c717794c8363f462caf Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Fri, 19 Feb 2021 18:13:08 +0000 Subject: Use Git tags in PKGBUILD --- deployments/archlinux/PKGBUILD | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/deployments/archlinux/PKGBUILD b/deployments/archlinux/PKGBUILD index c5d254c..ff7ad56 100644 --- a/deployments/archlinux/PKGBUILD +++ b/deployments/archlinux/PKGBUILD @@ -2,24 +2,25 @@ # SPDX-License-Identifier: ISC # Maintainer: Grégoire Duchêne + pkgname=fwdsms -pkgver=0.1 -pkgrel=1 +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) +source=(git://github.com/gduchene/fwdsms.git#tag=v${pkgver}) sha256sums=(SKIP) build() { - cd ${pkgname}/cmd/${pkgname} - go build + cd ${pkgname} + go build ./cmd/${pkgname} } package() { cd ${pkgname} - install -Dm755 cmd/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${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 -- cgit v1.2.3-70-g09d2