35 lines
1.2 KiB
Bash
35 lines
1.2 KiB
Bash
# Template file for 'urbanterror'
|
|
pkgname=urbanterror
|
|
version=4.3.4
|
|
revision=1
|
|
wrksrc="ioq3-for-UrbanTerror-4-release-${version}"
|
|
makedepends="SDL-devel libopenal-devel libcurl-devel libvorbis-devel"
|
|
depends="urbanterror-data>=${version}"
|
|
short_desc="A team tactical shooter based on ioquake"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="GPL-2"
|
|
homepage="https://github.com/Barbatos/ioq3-for-UrbanTerror-4"
|
|
distfiles="https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-${version}.tar.gz"
|
|
checksum=ce9d09a8ad149f8a1d36a85a586e1dd8ec9b8dcb3e5e9e82ec2a33017655bf43
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) CFLAGS+=" -msse2";;
|
|
esac
|
|
sed -i 's,-O3 -march=i586,,' Makefile
|
|
make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -ldl -lm" \
|
|
USE_OPENAL=yes USE_OPENAL_DLOPEN=0 \
|
|
USE_CURL=1 USE_CURL_DLOPEN=0 \
|
|
USE_CODEC_VORBIS=1 DEFAULT_BASEDIR="/usr/share/${pkgname}" \
|
|
${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
_ARCH=$(uname -m | sed -e s/i.86/i386/)
|
|
vbin build/release-linux-${_ARCH}/Quake3-UrT.${_ARCH} urbanterror
|
|
vbin build/release-linux-${_ARCH}/Quake3-UrT-Ded.${_ARCH} urbanterror-server
|
|
vinstall ${FILESDIR}/urbanterror.desktop 644 usr/share/applications
|
|
vinstall ${FILESDIR}/urbanterror.png 644 usr/share/pixmaps
|
|
}
|