diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-11-29 13:43:55 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-11-29 18:00:37 +0000 |
| commit | 5277c7123524f5cccbf5ce62f5aa93b4bed68b10 (patch) | |
| tree | 939ede863a41db0ffd2080f80600197458f8b7dc /deployments/archlinux/PKGBUILD | |
| parent | a5776d48925b1429b4704c11251220ab7143850f (diff) | |
First draft of the service
This version is pretty basic but it works.
Diffstat (limited to 'deployments/archlinux/PKGBUILD')
| -rw-r--r-- | deployments/archlinux/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/deployments/archlinux/PKGBUILD b/deployments/archlinux/PKGBUILD new file mode 100644 index 0000000..c5d254c --- /dev/null +++ b/deployments/archlinux/PKGBUILD @@ -0,0 +1,26 @@ +# 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.1 +pkgrel=1 +arch=(x86_64) +url=https://github.com/gduchene/fwdsms +license=(custom:ISC) +makedepends=(go) +source=(git://github.com/gduchene/fwdsms.git) +sha256sums=(SKIP) + +build() { + cd ${pkgname}/cmd/${pkgname} + go build +} + +package() { + cd ${pkgname} + install -Dm755 cmd/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm644 configs/example.yaml ${pkgdir}/etc/${pkgname}.yaml + install -Dm644 deployments/systemd/${pkgname}.service ${pkgdir}/usr/lib/systemd/system/${pkgname}.service + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} |
