summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}