mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-30 22:01:42 +01:00
71 lines
2.3 KiB
Plaintext
71 lines
2.3 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer:
|
|
pkgname=xonotic
|
|
pkgver=0.8.0
|
|
pkgrel=0
|
|
pkgdesc="Game engine for Xonotic (quake1/nexuiz derivative)"
|
|
url="http://www.xonotic.org/"
|
|
arch="x86 x86_64"
|
|
license="GPL2+"
|
|
depends="xonotic-data"
|
|
depends_dev="sdl-dev mesa-dev jpeg-dev libvorbis-dev libxpm-dev libxxf86dga-dev
|
|
libxxf86vm-dev libmodplug-dev libpng-dev alsa-lib-dev"
|
|
makedepends="$depends_dev"
|
|
install=""
|
|
subpackages="$pkgname-glx $pkgname-sdl"
|
|
source="http://dl.xonotic.org/xonotic-${pkgver}-source.zip
|
|
xonotic-moncontrol.patch"
|
|
|
|
_builddir="$srcdir"/Xonotic
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
# msg "building Xonotic-patched QuakeC compiler"
|
|
# make -C "$_builddir"/source/fteqcc CPUOPTIMIZATIONS="${CFLAGS}"
|
|
|
|
local r
|
|
for r in sv cl sdl; do
|
|
make -C "$_builddir"/source/darkplaces \
|
|
CPUOPTIMIZATIONS="$CFLAGS" \
|
|
DP_FS_BASEDIR="/usr/share/$pkgname" \
|
|
DP_LINK_TO_LIBJPEG=1 \
|
|
$r-release || return 1
|
|
done
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
install -Dm755 "$_builddir"/source/darkplaces/darkplaces-dedicated \
|
|
"$pkgdir"/usr/bin/xonotic-dedicated || return 1
|
|
}
|
|
|
|
sdl() {
|
|
pkgdesc="$pkgdesc (SDL client)"
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
install -Dm755 "$_builddir"/source/darkplaces/darkplaces-sdl \
|
|
"$subpkgdir"/usr/bin/xonotic-sdl || return 1
|
|
}
|
|
|
|
glx() {
|
|
pkgdesc="$pkgdesc (GLX client)"
|
|
mkdir -p "$subpkgdir"/usr/bin
|
|
install -Dm755 "$_builddir"/source/darkplaces/darkplaces-glx \
|
|
"$subpkgdir"/usr/bin/xonotic-glx || return 1
|
|
}
|
|
|
|
md5sums="2715a0b219239211cff9bc24d693e1c5 xonotic-0.8.0-source.zip
|
|
67b56ab2676cbc76c015fc889d7c23e3 xonotic-moncontrol.patch"
|
|
sha256sums="0ba4e05e845a0672d9c47e0ff06c6194d5eb8b2dda28ef2c90b3f2f615f4c84a xonotic-0.8.0-source.zip
|
|
b745ba7c58f3c18b53464f6142c1c4552bda1c131b796453c633b4a91892040e xonotic-moncontrol.patch"
|
|
sha512sums="9d150fce57aa567e5b2dec420c727b8867b2df38651743261533dd0654a59aa7830a441d672b2c605a2ce4869171a4728ee0b035a2da95bef870f9c084e64620 xonotic-0.8.0-source.zip
|
|
d74a1d1421dc68dbf46595510cea463382e69c8421110cd7b187419530dbfe9d262d9b65843b89b49aa91d9e32041e11941e411fe52f2dcb0ede18311ab821ec xonotic-moncontrol.patch"
|