blob: e1fc0ed27ff4dcac005db4c376816d35410ca1fa (
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
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: xengineering <me@xengineering.eu>
pkgname=finserv
pkgver='0.1.0'
pkgrel=1
pkgdesc="Personal finances server"
arch=('x86_64')
url="https://xengineering.eu/git/${pkgname}"
license=('MPL-2.0')
makedepends=('coreutils' 'git' 'meson' 'ninja' 'go' 'hugo')
source=("git+https://cgit.xengineering.eu/${pkgname}#tag=v${pkgver}?signed")
sha256sums=('SKIP')
validpgpkeys=(
'A13B258878787F943F6C68F00FD1F84233FA8900' # xengineering <me@xengineering.eu>
)
prepare() {
cd "${srcdir}/${pkgname}"
git submodule init
git submodule update
}
build() {
cd "${srcdir}/${pkgname}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
meson setup build
meson compile -C build
}
package() {
cd "${srcdir}/${pkgname}"
install -D -m 755 "${srcdir}/${pkgname}/build/${pkgname}-linux-amd64" "${pkgdir}/usr/bin/${pkgname}"
install -D -m 644 "${srcdir}/${pkgname}/systemd/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -D -m 644 "${srcdir}/${pkgname}/systemd/sysuser.conf" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -D -m 644 "${srcdir}/${pkgname}/systemd/${pkgname}.tmpfile.d" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}
|