aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-04-23 18:27:03 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-04-23 18:27:03 +0100
commit4b1f1a4ab46f29aa19b642b981e91da096a372ef (patch)
tree0ed832c86bf9a7829bc3d439a3bd7f1ad9887729
parent980a51f1a7d40bb419cd3ac4ab3c383b98265931 (diff)
Add Arch Linux PKGBUILD
-rw-r--r--deployments/archlinux/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/deployments/archlinux/PKGBUILD b/deployments/archlinux/PKGBUILD
new file mode 100644
index 0000000..a36afc3
--- /dev/null
+++ b/deployments/archlinux/PKGBUILD
@@ -0,0 +1,27 @@
+# Copyright (c) 2020, Grégoire Duchêne <gduchene@awhk.org>
+#
+# Use of this file is governed by the ISC license that can be found in
+# the LICENSE file.
+
+# Maintainer: Grégoire Duchêne <gduchene@awhk.org>
+pkgname=go-import-redirect
+pkgver=0.1
+pkgrel=1
+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)
+sha256sums=(SKIP)
+
+build() {
+ cd ${pkgname}/cmd/${pkgname}
+ go build
+}
+
+package() {
+ cd ${pkgname}
+ install -Dm755 cmd/${pkgname}/${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
+}