From cdadd74bb7e38e6e00ac01c0626242500f14e8b3 Mon Sep 17 00:00:00 2001 From: SpaceGuyBob <92336100+spaceguybob@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:55:07 -0400 Subject: [PATCH] add: `xonotic` (#4524) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Elsie --- packagelist | 1 + packages/xonotic/xonotic.pacscript | 33 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 packages/xonotic/xonotic.pacscript diff --git a/packagelist b/packagelist index ae1936100a..387a587a3f 100644 --- a/packagelist +++ b/packagelist @@ -447,6 +447,7 @@ xapps-common-deb xfce4-deb xfce4-settings-pine-git xmind-vana-deb +xonotic yabridge yad yafetch-git diff --git a/packages/xonotic/xonotic.pacscript b/packages/xonotic/xonotic.pacscript new file mode 100644 index 0000000000..b7c3c20fed --- /dev/null +++ b/packages/xonotic/xonotic.pacscript @@ -0,0 +1,33 @@ +name="xonotic" +pkgname="xonotic" +pkgver="0.8.6" +gives="xonotic" +pkgdesc="The Free and Fast Arena Shooter" +url="https://dl.unvanquished.net/share/xonotic/release/xonotic-${pkgver}.zip" +hash="50850f8d800e7499722f6ea61e478e96464a375494b5a24da93aa0598cbe964d" +breaks=("xonotic-git") +arch=('amd64') +maintainer="Herisson " +repology=("project: xonotic") + +package() { + sudo install -Dm755 "xonotic-linux64-sdl" "${pkgdir}/usr/bin/${pkgname}-sdl" + sudo install -Dm755 "xonotic-linux64-glx" "${pkgdir}/usr/bin/${pkgname}-glx" + sudo mkdir -p "${pkgdir}/usr/share/applications/" + sudo mkdir -p "${pkgdir}/usr/share/xonotic" + sudo mkdir -p "${homedir}/.xonotic" + sudo cp ./* "${homedir}/.xonotic/" -r + echo "[Desktop Entry] +Type=Application +Version=0.8.6 +Name=Xonotic +Comment=Multiplayer, deathmatch oriented first person shooter +Comment[de]=Deathmatch- und Mehrspieler-orientierter Ego-Shooter +Comment[fr]=Jeu de tir à la première personne multijoueur +Icon=xonotic +Exec=xonotic-sdl +Terminal=false +PrefersNonDefaultGPU=true +StartupNotify=false +Categories=Game;ActionGame;" | sudo tee "${pkgdir}/usr/share/applications/xonotic.desktop" > /dev/null +}