Markus Pesch
fc74605d09
All checks were successful
continuous-integration/drone/push Build is passing
46 lines
1.9 KiB
Bash
46 lines
1.9 KiB
Bash
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
|
|
|
|
pkgname=gitea-runner
|
|
_pkgname=act_runner
|
|
pkgver=0.1.0
|
|
pkgrel=3
|
|
pkgdesc='Gitea Runner'
|
|
arch=('armv7h' 'armv7l' 'aarch64' 'x86_64')
|
|
url=https://gitea.com/gitea/act_runner
|
|
license=('Apache 2.0')
|
|
# makedepends=('go')
|
|
source=(
|
|
"https://dl.gitea.com/act_runner/main/act_runner-main-linux-amd64"
|
|
"https://dl.gitea.com/act_runner/main/act_runner-main-linux-arm-7"
|
|
"https://dl.gitea.com/act_runner/main/act_runner-main-linux-arm64"
|
|
"https://gitea.com/gitea/act_runner/raw/branch/main/LICENSE"
|
|
"gitea-runner.service"
|
|
)
|
|
|
|
sha512sums=('a874f55b784859295d6f3829855fb684ed2744b164c1bff239100ea788e1505a27199f53520589727c7709e78d051c21663e67c7ff16e1657f8c2481bd5fb86f'
|
|
'83f6b5e7882198f11b635cc8aaa6ad053693c015bce85ae2285c8757d7439e66805a08cf4eb76233b8106e7867ea7459136671306007be9bb48ca9dcfec20b30'
|
|
'32dc348af8fe6b2c5d86eaa4226c127751a705c810853b9ad3a074c86473d0f2867523428997320bffea2f3202bc6364db8fd7aec45348cd20e447069f2cae21'
|
|
'bbd5cd3f8aa033d4b0bd1ad7e7e9f0b144130d2ef60eddc408cdbdefe09a51e3e62e3724390ab2c9a0401cace258c362775706954e3e0f30992ff92680e81993'
|
|
'bdc9a792c3339fc2c2d1ec750abae71459402c5b6b121e11ecbd8f3c5f7bcf4fc545be76e2ee417f009adb9968f9baafd636687eee17489211e794cb9675a77f')
|
|
|
|
package() {
|
|
case "$(uname -m)" in
|
|
"x86_64")
|
|
install -D --mode=0755 "${_pkgname}-main-linux-amd64" "${pkgdir}/usr/bin/${_pkgname}"
|
|
;;
|
|
"arm7" | "armv7h" | "armv7h")
|
|
install -D --mode=0755 "${_pkgname}-main-linux-arm-7" "${pkgdir}/usr/bin/${_pkgname}"
|
|
;;
|
|
"aarch64")
|
|
install -D --mode=0755 "${_pkgname}-main-linux-arm64" "${pkgdir}/usr/bin/${_pkgname}"
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
install --directory --mode=0755 ${pkgdir}/etc/${_pkgname}
|
|
install -D --mode=0644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
|
|
install -D --mode=0644 gitea-runner.service "${pkgdir}/usr/lib/systemd/system/gitea-runner.service"
|
|
}
|