aboutsummaryrefslogtreecommitdiff
path: root/archlinux/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'archlinux/PKGBUILD')
-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..5e9489b
--- /dev/null
+++ b/archlinux/PKGBUILD
@@ -0,0 +1,28 @@
+# SPDX-FileCopyrightText: © 2020 Grégoire Duchêne <gduchene@awhk.org>
+# SPDX-License-Identifier: ISC
+
+# Maintainer: Grégoire Duchêne <gduchene@awhk.org>
+
+pkgname=fwdsms
+pkgver=0.2.1
+pkgrel=1
+arch=(x86_64)
+url=https://github.com/gduchene/fwdsms
+license=(custom:ISC)
+backup=(etc/${pkgname}.yaml)
+makedepends=(go)
+source=(git://github.com/gduchene/fwdsms.git#tag=v${pkgver})
+sha256sums=(SKIP)
+
+build() {
+ cd ${pkgname}
+ go build
+}
+
+package() {
+ cd ${pkgname}
+ install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
+ install -Dm644 config_example.yaml ${pkgdir}/etc/${pkgname}.yaml
+ install -Dm644 systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}