blob: 7b1b82a43cf5cfc621f9537fff9b20f7fada0ccf (
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
41
42
43
44
45
46
47
48
|
# Maintainer: Jonas Geiler <aur@jonasgeiler.com>
pkgname=supercronic
# renovate: datasource=github-releases depName=aptible/supercronic
pkgver=0.2.33
pkgrel=1
pkgdesc='A crontab-compatible job runner, designed specifically to run in containers'
arch=(aarch64 arm armv6h armv7h i686 pentium4 riscv64 x86_64)
url='https://github.com/aptible/supercronic'
license=(MIT)
makedepends=(
git # Sources
go # Build
)
conflicts=(
supercronic-bin
supercronic-git
)
options=(
!strip # Stripping symbols would break the output binary
!emptydirs # Remove empty directories from package because why not
)
source=("supercronic::git+https://github.com/aptible/supercronic.git#tag=v${pkgver}")
b2sums=('24ff154428eb7b8d0ae8886ac8f9832e918af893d547dca180d52b0ac0ca61892596bcd637939113b0b89c654a7ccc927ba22f57cca5e0a8b0b20d26691d93d8')
build() {
export GOPATH="${srcdir}/gopath/"
export CGO_ENABLED=0
cd "${srcdir}/supercronic/"
go build \
-trimpath \
-mod=readonly \
-modcacherw \
-ldflags "-X main.Version=v${pkgver}"
}
check() {
"${srcdir}/supercronic/supercronic" -version
}
package() {
install -Dm755 \
"${srcdir}/supercronic/supercronic" \
"${pkgdir}/usr/bin/supercronic"
install -Dm644 \
"${srcdir}/supercronic/LICENSE.md" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
}
|