aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Williams2019-11-30 02:27:20 +1300
committerSamuel Williams2019-11-30 02:27:20 +1300
commit38b278eb2e194db7306c28cd1bd50dababd4d3ac (patch)
treefb096ad2a20bdd6d4a340b673085703f927eb7d3
parentc9282670c8c12dba19b4b5c747a4fe1e3f6d14c1 (diff)
downloadaur-38b278eb2e194db7306c28cd1bd50dababd4d3ac.tar.gz
Add github user because the runner requires to write to the install directory.
-rw-r--r--.SRCINFO3
-rwxr-xr-xPKGBUILD27
2 files changed, 26 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fcb696725f91..54f798be738c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index c74ebdc61e79..36f9464f9bfc 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}