Skip to content

Commit

Permalink
add: xonotic (#4524)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Elsie <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2023
1 parent 2b620af commit cdadd74
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ xapps-common-deb
xfce4-deb
xfce4-settings-pine-git
xmind-vana-deb
xonotic
yabridge
yad
yafetch-git
Expand Down
33 changes: 33 additions & 0 deletions packages/xonotic/xonotic.pacscript
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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
}

0 comments on commit cdadd74

Please sign in to comment.