aboutsummaryrefslogtreecommitdiff
path: root/archlinux
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:33:18 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2021-07-04 15:33:18 +0100
commit80b5a6680e2fc4d2f1e425ff2e5f1cfbbd529d9e (patch)
tree6286c7d490ebfe4b8c1013dbb2807e8c55e0d71d /archlinux
parent8c5aaad11e949adfd1545b7802899b81f7d74ed5 (diff)
Simplify project structure
Diffstat (limited to 'archlinux')
-rw-r--r--archlinux/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
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 <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.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
+}