blob: 86d5d3d42339f98a06fc5549f5a8006c06f465bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# 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.3.0
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 systemd/${pkgname}.socket ${pkgdir}/usr/lib/systemd/system/${pkgname}.socket
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
|