blob: 36f9464f9bfca34ef33731f193f21bdccf16b6ba (
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
|
# Maintainer: Samuel Williams <samuel@oriontransfer.net>
pkgname=github-actions
pkgver=2.161.0
pkgrel=2
pkgdesc='GitHub Actions self-hosted runner tools.'
arch=('x86_64')
url='https://help.github.com/en/actions'
license=('custom')
OPTIONS=(!strip !docs libtool emptydirs)
install=PKGBUILD
provides=('github-actions')
conflicts=('github-actions')
source=(
https://githubassets.azureedge.net/runners/$pkgver/actions-runner-linux-x64-$pkgver.tar.gz
)
sha512sums=('711cdb99e6dc34e6cc843ef31befd2db49bfe0463f3da9550663ced9febb362cdf23d4976ce78455edad72d00dd0713114e13c46a5461c454a5a9fe5738b8639')
package() {
mkdir -p "$pkgdir/opt/$provides"
cp -r "$srcdir/." "$pkgdir/opt/$provides"
}
pre_install() {
useradd -m -s /bin/zsh github
}
post_install() {
chown -R github:github /opt/github
}
post_upgrade() {
post_install
}
post_remove() {
userdel -f github
rm -rf /opt/$provides
}
|