From 9a00552ea5e4de46b825f48bbf03a80809c87e42 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sat, 18 Apr 2020 16:02:11 +0200 Subject: pcr: Add xonotic for armv7h Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/xonotic-data/PKGBUILD | 38 ++++++++++++++++++++++++ pcr/xonotic/PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++ pcr/xonotic/xonotic-glx.desktop | 11 +++++++ pcr/xonotic/xonotic-sdl.desktop | 11 +++++++ 4 files changed, 126 insertions(+) create mode 100644 pcr/xonotic-data/PKGBUILD create mode 100644 pcr/xonotic/PKGBUILD create mode 100644 pcr/xonotic/xonotic-glx.desktop create mode 100644 pcr/xonotic/xonotic-sdl.desktop (limited to 'pcr') diff --git a/pcr/xonotic-data/PKGBUILD b/pcr/xonotic-data/PKGBUILD new file mode 100644 index 000000000..2eb8a1cda --- /dev/null +++ b/pcr/xonotic-data/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer (Arch): Sven-Hendrik Haase +# Contributor (Arch): Alexander Suhoverhov +# This package is in Parabola only for architectures that don't have xonotic in +# their feed. Here is the status of xonotic in the various upstream +# GNU/Linux distributions Parabola is based on: +# +--------------+----------------+---------------+ +# | Architecture | Upstream | Upstream repo | +# +--------------+----------------+---------------+ +# | armv7h | Arch Linux ARM | None | +# | i686 | Arch Linux 32 | community | +# | x86_64 | Arch Linux | community | +# +--------------+----------------+---------------+ +pkgname=xonotic-data +pkgver=0.8.2 +pkgrel=3 +pkgdesc="A free, fast-paced crossplatform first-person shooter (data files)" +arch=('armv7h') +url="http://xonotic.org" +license=('GPL') +depends=('bash' 'perl') +makedepends=('unzip') +source=("https://dl.xonotic.org/xonotic-${pkgver}.zip") +sha512sums=('0787fcf326827ae0292e5917c7ff2c7fd79947209d4b62e7f83b8b828bec15b575da304e0631f9f163c9b0bd93bed13616e142398ff08cbdaaea890a939dfca5') + +package() { + cd Xonotic + + # data + mkdir -p "$pkgdir"/usr/share/xonotic/ + mv data "$pkgdir"/usr/share/xonotic/ + + # server stuff + cp -r server "$pkgdir"/usr/share/xonotic/ + + # key + install -Dm644 key_0.d0pk "$pkgdir"/usr/share/xonotic/key_0.d0pk +} +# vim: ts=2:sw=2 et: diff --git a/pcr/xonotic/PKGBUILD b/pcr/xonotic/PKGBUILD new file mode 100644 index 000000000..5fd442c86 --- /dev/null +++ b/pcr/xonotic/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer (Arch): Sven-Hendrik Haase +# Contributor (Arch): Alexander Suhoverhov +# Contributor (Arch): Jookia <166291@gmail.com> +# This package is in Parabola only for architectures that don't have xonotic in +# their feed. Here is the status of xonotic in the various upstream +# GNU/Linux distributions Parabola is based on: +# +--------------+----------------+---------------+ +# | Architecture | Upstream | Upstream repo | +# +--------------+----------------+---------------+ +# | armv7h | Arch Linux ARM | None | +# | i686 | Arch Linux 32 | community | +# | x86_64 | Arch Linux | community | +# +--------------+----------------+---------------+ +pkgname=xonotic +pkgver=0.8.2 +pkgrel=4 +pkgdesc="A free, fast-paced crossplatform first-person shooter" +arch=('armv7h') +url="http://xonotic.org" +license=('GPL') +depends=('alsa-lib' 'curl' 'libjpeg>=8' 'libmodplug' 'libvorbis' 'libxpm' + 'libxxf86vm' 'sdl2' 'libpng>=1.4.0' 'xonotic-data' 'hicolor-icon-theme' + 'gtk-update-icon-cache' 'desktop-file-utils') +makedepends=('unzip' 'mesa' 'xorgproto') +source=("http://dl.xonotic.org/xonotic-${pkgver}-source.zip" + "xonotic-glx.desktop" + "xonotic-sdl.desktop") +sha512sums=('1a803f3ebd2e1c3a2000e6b7a6ec0ab3a64c92a9c7b41c329a5054a51bb624a790a84bd6b3a344a59f3bd7bf18feecec0b39e2ddfc116c52ad85d22731a0fba0' + '2e06d588d68d629a9690b4dd3372c7ad77b240afcd86cf0cdf2de15548d3feaa0e446df1a29339be4593d23bfcf389930bdd1d7021f1e2558d70bb15e28646bd' + '963273811453f713ab70f5d12b918c1513a9a7995cd1d2572f0b9060d945391bf7db4ae04ae586531ecf3a088f837803a66ac267d9285928d8b2e82c98b7158b') + +build() { + # compile engine + make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 cl-release + make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sdl-release + make -C Xonotic/source/darkplaces CPUOPTIMIZATIONS="${CFLAGS}" DP_FS_BASEDIR=/usr/share/xonotic/ DP_LINK_TO_LIBJPEG=1 sv-release + + cd "$srcdir"/Xonotic/source/d0_blind_id + sh autogen.sh + ./configure --prefix=/usr --disable-rijndael + make +} + +package() { + cd $srcdir/Xonotic + + # binaries + install -Dm755 source/darkplaces/darkplaces-dedicated "$pkgdir"/usr/bin/xonotic-dedicated + install -Dm755 source/darkplaces/darkplaces-glx "$pkgdir"/usr/bin/xonotic-glx + install -Dm755 source/darkplaces/darkplaces-sdl "$pkgdir"/usr/bin/xonotic-sdl + + # convenience files + mkdir -p "$pkgdir"/usr/share/applications + install -Dm644 "$srcdir"/*.desktop -t "$pkgdir"/usr/share/applications + + for size in 16 22 24 32 48 64 128 256 512; do + install -Dm644 "$srcdir"/Xonotic/misc/logos/icons_png/xonotic_${size}.png \ + "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/xonotic.png" + done + + # crypto stuff + cd "$srcdir"/Xonotic/source/d0_blind_id + make DESTDIR="$pkgdir" install +} + +# vim: ts=2:sw=2 et: diff --git a/pcr/xonotic/xonotic-glx.desktop b/pcr/xonotic/xonotic-glx.desktop new file mode 100644 index 000000000..ebce0e196 --- /dev/null +++ b/pcr/xonotic/xonotic-glx.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=2.5 +Encoding=UTF-8 +Name=Xonotic (GLX) +Comment=a free open-source first person shooter +Icon=xonotic +Exec=/usr/bin/xonotic-glx +Terminal=false +StartupNotify=false +Categories=Game; diff --git a/pcr/xonotic/xonotic-sdl.desktop b/pcr/xonotic/xonotic-sdl.desktop new file mode 100644 index 000000000..2c631916b --- /dev/null +++ b/pcr/xonotic/xonotic-sdl.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=2.5 +Encoding=UTF-8 +Name=Xonotic (SDL) +Comment=a free open-source first person shooter +Icon=xonotic +Exec=/usr/bin/xonotic-sdl +Terminal=false +StartupNotify=false +Categories=Game; -- cgit v1.2.3