diff options
author | brent s | 2016-04-03 03:12:10 -0400 |
---|---|---|
committer | brent s | 2016-04-03 03:12:10 -0400 |
commit | 85aaaf0630259cf8bb493544054d103306b5eca9 (patch) | |
tree | 9e06963c8054633da93905170b8a4d7a3cb7ed31 /spearmint.install | |
download | aur-85aaaf0630259cf8bb493544054d103306b5eca9.tar.gz |
initial commit - 0.2
Diffstat (limited to 'spearmint.install')
-rw-r--r-- | spearmint.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spearmint.install b/spearmint.install new file mode 100644 index 000000000000..3904d6ba7414 --- /dev/null +++ b/spearmint.install @@ -0,0 +1,25 @@ +post_install() { + groupadd -f games + useradd -r -s /sbin/nologin -c "Spearmint Daemon user" -M -d /opt/quake3 -g games spearmint > /dev/null 2>&1 + + echo '!!!' + echo '!!! To play Spearmint with the Retail Version of Quake III: Arena,' + echo '!!! move the pak0.pk3 file from the original game CD to /opt/quake3/baseq3/' + echo '!!!' + echo '!!!' + echo '!!! When you have the .pk3 file(s) installed, you can run the game via: quake3' + echo '!!! See https://github.com/zturtleman/spearmint/wiki for more documentation.' + echo '!!!' +} + +post_upgrade() { + post_install ${1} +} + +post_remove() { + userdel -rf spearmint > /dev/null 2>&1 + if egrep -q '^games:.*:$' /etc/group; + then + groupdel games + fi +} |