mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 23:11:36 +01:00
111 lines
3.0 KiB
Plaintext
111 lines
3.0 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
|
pkgname=xonotic
|
|
pkgver=0.8.2
|
|
pkgrel=0
|
|
pkgdesc="A free, fast-paced crossplatform first-person shooter"
|
|
url="https://www.xonotic.org/"
|
|
arch="x86 x86_64 aarch64 armv7 armhf ppc64le"
|
|
license="GPL-2.0-or-later"
|
|
depends="xonotic-data"
|
|
makedepends="autoconf
|
|
automake
|
|
libtool
|
|
alsa-lib-dev
|
|
curl-dev
|
|
libjpeg-turbo-dev
|
|
libmodplug-dev
|
|
libvorbis-dev
|
|
libxpm-dev
|
|
libxxf86dga-dev
|
|
libxxf86vm-dev
|
|
sdl2-dev
|
|
libpng-dev
|
|
mesa-dev
|
|
gmp-dev"
|
|
subpackages="$pkgname-server $pkgname-sdl $pkgname-glx"
|
|
options="!check"
|
|
source="$pkgname-$pkgver.zip::http://dl.xonotic.org/xonotic-$pkgver-source.zip
|
|
xonotic-moncontrol.patch
|
|
xonotic-sdl.desktop
|
|
xonotic-glx.desktop"
|
|
builddir="$srcdir"/Xonotic
|
|
|
|
build() {
|
|
local r
|
|
for r in sv sdl cl; do
|
|
make -C "$builddir"/source/darkplaces \
|
|
CPUOPTIMIZATIONS="$CFLAGS" \
|
|
DP_FS_BASEDIR="/usr/share/$pkgname" \
|
|
DP_LINK_TO_LIBJPEG=1 \
|
|
"$r"-release
|
|
done
|
|
|
|
cd "$builddir"/source/d0_blind_id
|
|
sh autogen.sh
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/source/d0_blind_id
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
cd "$pkgdir"/usr
|
|
rm -r include
|
|
cd lib
|
|
rm -r pkgconfig -- *.a
|
|
|
|
local size
|
|
for size in 16 22 24 32 48 64 128 256 512; do
|
|
install -Dm644 "$builddir"/misc/logos/icons_png/xonotic_"$size".png \
|
|
"$pkgdir"/usr/share/icons/hicolor/"$size"x"$size"/apps/xonotic.png
|
|
done
|
|
}
|
|
|
|
server() {
|
|
pkgdesc="$pkgdesc (Server)"
|
|
depends="xonotic"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
install -Dm755 "$builddir"/source/darkplaces/darkplaces-dedicated \
|
|
"$subpkgdir"/usr/bin/xonotic-dedicated
|
|
}
|
|
|
|
sdl() {
|
|
pkgdesc="$pkgdesc (SDL client)"
|
|
depends="xonotic"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
install -Dm755 "$builddir"/source/darkplaces/darkplaces-sdl \
|
|
"$subpkgdir"/usr/bin/xonotic-sdl
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/applications
|
|
install -Dm644 "$srcdir"/xonotic-sdl.desktop \
|
|
"$subpkgdir"/usr/share/applications/xonotic-sdl.desktop
|
|
}
|
|
|
|
glx() {
|
|
pkgdesc="$pkgdesc (GLX client)"
|
|
depends="xonotic"
|
|
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
install -Dm755 "$builddir"/source/darkplaces/darkplaces-glx \
|
|
"$subpkgdir"/usr/bin/xonotic-glx
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/applications
|
|
install -Dm644 "$srcdir"/xonotic-glx.desktop \
|
|
"$subpkgdir"/usr/share/applications/xonotic-glx.desktop
|
|
}
|
|
|
|
sha512sums="1a803f3ebd2e1c3a2000e6b7a6ec0ab3a64c92a9c7b41c329a5054a51bb624a790a84bd6b3a344a59f3bd7bf18feecec0b39e2ddfc116c52ad85d22731a0fba0 xonotic-0.8.2.zip
|
|
d74a1d1421dc68dbf46595510cea463382e69c8421110cd7b187419530dbfe9d262d9b65843b89b49aa91d9e32041e11941e411fe52f2dcb0ede18311ab821ec xonotic-moncontrol.patch
|
|
963273811453f713ab70f5d12b918c1513a9a7995cd1d2572f0b9060d945391bf7db4ae04ae586531ecf3a088f837803a66ac267d9285928d8b2e82c98b7158b xonotic-sdl.desktop
|
|
2e06d588d68d629a9690b4dd3372c7ad77b240afcd86cf0cdf2de15548d3feaa0e446df1a29339be4593d23bfcf389930bdd1d7021f1e2558d70bb15e28646bd xonotic-glx.desktop"
|