diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-02-19 16:49:52 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-02-19 16:49:52 +0000 |
| commit | 8c5aaad11e949adfd1545b7802899b81f7d74ed5 (patch) | |
| tree | 176ca5293945cc3e1b2d92855cd874b9804699df | |
| parent | 956792dc5cd92612584d95a1a791460cecd8ed19 (diff) | |
Use Git tags in PKGBUILD
| -rw-r--r-- | deployments/archlinux/PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/deployments/archlinux/PKGBUILD b/deployments/archlinux/PKGBUILD index a36afc3..1de09e4 100644 --- a/deployments/archlinux/PKGBUILD +++ b/deployments/archlinux/PKGBUILD @@ -4,24 +4,25 @@ # the LICENSE file. # Maintainer: Grégoire Duchêne <gduchene@awhk.org> + pkgname=go-import-redirect -pkgver=0.1 -pkgrel=1 +pkgver=0.1.0 +pkgrel=2 arch=(x86_64) url=https://github.com/gduchene/go-import-redirect license=(custom:ISC) makedepends=(go) -source=(git://github.com/gduchene/go-import-redirect.git) +source=(git+https://github.com/gduchene/go-import-redirect.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 deployments/systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } |
