Merge pull request #1762 from thypon/urbanterror
New package: urbanterror
This commit is contained in:
commit
c0c3e4e029
4 changed files with 56 additions and 0 deletions
19
srcpkgs/urbanterror-data/template
Normal file
19
srcpkgs/urbanterror-data/template
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Template file for 'urbanterror-data'
|
||||||
|
pkgname=urbanterror-data
|
||||||
|
version=4.2.023
|
||||||
|
revision=1
|
||||||
|
noarch=yes
|
||||||
|
wrksrc="UrbanTerror42"
|
||||||
|
hostmakedepends="unzip"
|
||||||
|
short_desc="Urbanterror data files"
|
||||||
|
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
|
||||||
|
license="Freeware"
|
||||||
|
homepage="http://www.urbanterror.info"
|
||||||
|
distfiles="http://cdn.urbanterror.info/urt/42/zips/UrbanTerror42_full${version##*.}.zip"
|
||||||
|
checksum=e287e2a17432b81551f5c16e431d752484ce9be10508e756542f653757a29090
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
vmkdir usr/share/urbanterror
|
||||||
|
vcopy q3ut4 usr/share/urbanterror
|
||||||
|
vlicense q3ut4/readme42.txt
|
||||||
|
}
|
7
srcpkgs/urbanterror/files/urbanterror.desktop
Normal file
7
srcpkgs/urbanterror/files/urbanterror.desktop
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=Urban Terror
|
||||||
|
Type=Application
|
||||||
|
Categories=Game;
|
||||||
|
Terminal=false
|
||||||
|
Exec=urbanterror
|
||||||
|
Icon=urbanterror
|
BIN
srcpkgs/urbanterror/files/urbanterror.png
Normal file
BIN
srcpkgs/urbanterror/files/urbanterror.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
30
srcpkgs/urbanterror/template
Normal file
30
srcpkgs/urbanterror/template
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Template file for 'urbanterror'
|
||||||
|
pkgname=urbanterror
|
||||||
|
version=4.2.023
|
||||||
|
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 <miwaxe@gmail.com>"
|
||||||
|
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=17c79f4ed1adc0859a20f0b19ab75f04e1e7ff518c882b5cd68199b44acff90f
|
||||||
|
nocross=yes
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make CC="$CC" CFLAGS="$CFLAGS" \
|
||||||
|
USE_OPENAL=yes USE_OPENAL_DLOPEN=0 \
|
||||||
|
USE_CURL=1 USE_CURL_DLOPEN=0 \
|
||||||
|
USE_CODEC_VORBIS=1 DEFAULT_BASEDIR="/usr/share/${pkgname}" \
|
||||||
|
${makejob}
|
||||||
|
}
|
||||||
|
|
||||||
|
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/application
|
||||||
|
vinstall ${FILESDIR}/urbanterror.png 644 usr/share/pixmaps
|
||||||
|
}
|
Loading…
Reference in a new issue