diff options
author | Samuel Williams | 2019-11-30 02:27:20 +1300 |
---|---|---|
committer | Samuel Williams | 2019-11-30 02:27:20 +1300 |
commit | 38b278eb2e194db7306c28cd1bd50dababd4d3ac (patch) | |
tree | fb096ad2a20bdd6d4a340b673085703f927eb7d3 | |
parent | c9282670c8c12dba19b4b5c747a4fe1e3f6d14c1 (diff) | |
download | aur-38b278eb2e194db7306c28cd1bd50dababd4d3ac.tar.gz |
Add github user because the runner requires to write to the install directory.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rwxr-xr-x | PKGBUILD | 27 |
2 files changed, 26 insertions, 4 deletions
@@ -1,8 +1,9 @@ pkgbase = github-actions pkgdesc = GitHub Actions self-hosted runner tools. pkgver = 2.161.0 - pkgrel = 1 + pkgrel = 2 url = https://help.github.com/en/actions + install = PKGBUILD arch = x86_64 license = custom provides = github-actions @@ -2,12 +2,16 @@ pkgname=github-actions pkgver=2.161.0 -pkgrel=1 +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') @@ -18,6 +22,23 @@ source=( sha512sums=('711cdb99e6dc34e6cc843ef31befd2db49bfe0463f3da9550663ced9febb362cdf23d4976ce78455edad72d00dd0713114e13c46a5461c454a5a9fe5738b8639') package() { - mkdir -p "$pkgdir/opt/$provides" - cp -r "$srcdir/." "$pkgdir/opt/$provides" + 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 } |