From 80b5a6680e2fc4d2f1e425ff2e5f1cfbbd529d9e Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sun, 4 Jul 2021 15:33:18 +0100 Subject: Simplify project structure --- archlinux/PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 archlinux/PKGBUILD (limited to 'archlinux') diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD new file mode 100644 index 0000000..e8a538d --- /dev/null +++ b/archlinux/PKGBUILD @@ -0,0 +1,28 @@ +# Copyright (c) 2020, Grégoire Duchêne +# +# Use of this file is governed by the ISC license that can be found in +# the LICENSE file. + +# Maintainer: Grégoire Duchêne + +pkgname=go-import-redirect +pkgver=0.1.0 +pkgrel=2 +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 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} -- cgit v1.2.3-70-g09d2