blob: fcf9de1fe5b3845600db75b7777981c2965b2fe6 (
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: Manuel Gugger <mdgdot[at]tutanota[dot]com>
pkgname=act-runner-bin
pkgver=0.2.11
pkgrel=1
pkgdesc="A runner for Gitea Actions based on GitHub's Act"
arch=('x86_64' 'aarch64')
url="https://gitea.com/gitea/act_runner"
license=('MIT')
optdepends=('docker: for running containers')
provides=('act_runner')
conflicts=('act_runner')
source_x86_64=("https://gitea.com/gitea/act_runner/releases/download/v${pkgver}/act_runner-${pkgver}-linux-amd64.xz")
source_aarch64=("https://gitea.com/gitea/act_runner/releases/download/v${pkgver}/act_runner-${pkgver}-linux-arm64.xz")
sha256sums_x86_64=('6099bccc2876cb760f5443e88c8b2e1a52f226f485152fc6f711b3bb3f49501c')
sha256sums_aarch64=('e155c3a476921b6636947af90c7119758c9332c5b82c4a15ed86e17c4d7204e7')
source=('act_runner.service'
'act_runner.yaml'
'act_runner.sysusers'
'act_runner.tmpfiles')
sha256sums=('245f610f82bcb5140d9040f997332186c03a575b98cce603e39f1f0300773e3e'
'ff4cc6b9b604da75254bbdcb550103d08b749a6986671c8fd69e1dbda2f230a6'
'5ba0c3203cf42cb1e2b58840726b53e481fe980b8cfc24d14fba057d31d676ca'
'5f8944df92d0e5278e3a29795dfcd8bcd340bea37075627d4f9d3303cdb58607')
package() {
if [[ $CARCH == "x86_64" ]]; then
mv act_runner-${pkgver}-linux-amd64 act_runner
elif [[ $CARCH == "aarch64" ]]; then
mv act_runner-${pkgver}-linux-arm64 act_runner
fi
install -Dm755 act_runner -t "$pkgdir/usr/bin"
install -Dm644 "$srcdir/act_runner.service" "$pkgdir/usr/lib/systemd/system/act_runner.service"
install -Dm644 "$srcdir/act_runner.yaml" "$pkgdir/etc/act_runner/act_runner.yaml"
install -Dm644 "$srcdir/act_runner.sysusers" "$pkgdir/usr/lib/sysusers.d/act_runner.conf"
install -Dm644 "$srcdir/act_runner.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/act_runner.conf"
}
|