diff options
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -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 } |