diff options
author | J. Olsen | 2020-08-07 20:47:06 -0700 |
---|---|---|
committer | J. Olsen | 2020-08-07 20:56:22 -0700 |
commit | 9c5c2335be5b6353a7d24f8177612d89236a998f (patch) | |
tree | e8bb0c03b6701bac47d52104ebdf67a6b0e71d79 | |
download | aur-9c5c2335be5b6353a7d24f8177612d89236a998f.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | PKGBUILD | 64 | ||||
-rw-r--r-- | default.cfg | 218 | ||||
-rw-r--r-- | ioq3-compile64.patch | 29 | ||||
-rw-r--r-- | ioq3-makefile.local | 17 | ||||
-rw-r--r-- | ioq3-standalone.patch | 44 | ||||
-rw-r--r-- | urbanterror41-server.sh | 4 | ||||
-rw-r--r-- | urbanterror41.desktop | 8 | ||||
-rw-r--r-- | urbanterror41.sh | 4 |
9 files changed, 426 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..beda44befab0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,38 @@ +pkgbase = urbanterror41 + pkgdesc = Urban Terror is a team-based tactical shooter based on the Quake 3 Engine (ioQ3 Version) + pkgver = 4.1 + pkgrel = 1 + epoch = 1 + url = http://www.urbanterror.info + arch = x86_64 + license = GPL2 + makedepends = mesa + depends = sdl + depends = openal + depends = curl + depends = opus + depends = opusfile + depends = mumble + source = https://up.barbatos.fr/urt/UrbanTerror4.1.1.zip + source = git+https://github.com/ioquake/ioq3.git + source = https://upload.wikimedia.org/wikipedia/commons/5/56/Urbanterror.svg + source = ioq3-makefile.local + source = ioq3-standalone.patch + source = ioq3-compile64.patch + source = urbanterror41.sh + source = urbanterror41-server.sh + source = urbanterror41.desktop + source = default.cfg + md5sums = 722c1fea9936593c9ef039bb068cc33b + md5sums = SKIP + md5sums = 728dc8288d4ffb781feddf55e0fc878d + md5sums = c8e10b3582bbe56ccaf5e9d43c961002 + md5sums = 1643d06ec3079542fb38cf2b913c84d9 + md5sums = 62736969cc65c7b82d2183fd01078c2f + md5sums = a437e92578430636a35bcb9b17337198 + md5sums = b3fd5122bdd49c6003701dd9214b9aef + md5sums = 5e1068aed72fb55bf9dcb80efa72a9c7 + md5sums = SKIP + +pkgname = urbanterror41 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7d4bbe8c732a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Joshua Olsen (JackKelli) <joshuaolsen@gmail.com> + +pkgname=urbanterror41 +pkgver=4.1 +pkgrel=1 +epoch=1 +pkgdesc="Urban Terror is a team-based tactical shooter based on the Quake 3 Engine (ioQ3 Version)" +arch=('x86_64') +url="http://www.urbanterror.info" +license=('GPL2') +depends=('sdl' 'openal' 'curl' 'opus' 'opusfile' 'mumble') +makedepends=('mesa') +source=("https://up.barbatos.fr/urt/UrbanTerror4.1.1.zip" + "git+https://github.com/ioquake/ioq3.git" + "https://upload.wikimedia.org/wikipedia/commons/5/56/Urbanterror.svg" + "ioq3-makefile.local" + "ioq3-standalone.patch" + "ioq3-compile64.patch" + "${pkgname}.sh" + "${pkgname}-server.sh" + "${pkgname}.desktop" + "default.cfg") +md5sums=('722c1fea9936593c9ef039bb068cc33b' + 'SKIP' + '728dc8288d4ffb781feddf55e0fc878d' + 'c8e10b3582bbe56ccaf5e9d43c961002' + '1643d06ec3079542fb38cf2b913c84d9' + '62736969cc65c7b82d2183fd01078c2f' + 'a437e92578430636a35bcb9b17337198' + 'b3fd5122bdd49c6003701dd9214b9aef' + '5e1068aed72fb55bf9dcb80efa72a9c7' + 'SKIP') + +package() { + unzip -o UrbanTerror4.1.1.zip -d "${srcdir}" + + cp -f "ioq3-makefile.local" ioq3/Makefile.local + patch -d "${srcdir}/ioq3" -s -p1 < ioq3-standalone.patch + patch -d "${srcdir}/ioq3" -s -p1 < ioq3-compile64.patch + + cd ioq3 + make + + zip -j - "${srcdir}/default.cfg" > "${srcdir}/zpak000_newdefault.pk3" + mkdir -p "${pkgdir}/opt/${pkgname}/q3ut4" + install -m755 "${srcdir}/ioq3/build/release-linux-x86_64/urbanterror41.x86_64" "${pkgdir}/opt/${pkgname}" + install -m755 "${srcdir}/ioq3/build/release-linux-x86_64/urbanterror41-server.x86_64" "${pkgdir}/opt/${pkgname}" + install -m755 "${srcdir}/ioq3/build/release-linux-x86_64/renderer_opengl1_x86_64.so" "${pkgdir}/opt/${pkgname}" + install -m755 "${srcdir}/ioq3/build/release-linux-x86_64/renderer_opengl2_x86_64.so" "${pkgdir}/opt/${pkgname}" + install -m644 "${srcdir}/UrbanTerror/q3ut4/autoexec.cfg" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/UrbanTerror/q3ut4/description.txt" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/UrbanTerror/q3ut4/mapcycle.txt" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/UrbanTerror/q3ut4/server.cfg" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/UrbanTerror/q3ut4/zpak000.pk3" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/UrbanTerror/q3ut4/zpak000_assets.pk3" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/UrbanTerror/q3ut4/zpak001_assets.pk3" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 "${srcdir}/zpak000_newdefault.pk3" "${pkgdir}/opt/${pkgname}/q3ut4" + install -m644 -T "${srcdir}/Urbanterror.svg" "${pkgdir}/opt/${pkgname}/${pkgname}.svg" + mkdir -p "${pkgdir}/usr/bin" + install -m755 -T "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" + install -m755 -T "${srcdir}/${pkgname}-server.sh" "${pkgdir}/usr/bin/${pkgname}-server" + mkdir -p "${pkgdir}/usr/share/applications" + install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications" +}
\ No newline at end of file diff --git a/default.cfg b/default.cfg new file mode 100644 index 000000000000..9842fec8ca22 --- /dev/null +++ b/default.cfg @@ -0,0 +1,218 @@ +//This file sets the default values when there's not an excisting q3config.cfg. +//Typically, it will only be loaded the first time the game is played. +//After that, the game will use what is in the q3config.cfg... + +// There are multiple ways to set a variable. +// set = sets a cvar but doesn't save it in your q3config.cfg when used interactively +// seta = sets a cvar and flags it as archive to save in your q3config.cfg +// sets = sets a cvar and flags it as server info to be displayed by server browsers +// setu = sets a cvar and flags it as user info + +unbindall + +//BINDINGS + +bind ~ "toggleconsole" +bind ` "toggleconsole" +bind TAB "+scores" +bind SPACE "+moveup" +bind - "ut_weapdrop" +bind _ "ut_weapdrop" +bind 1 "ut_weaptoggle knife" +bind 2 "ut_weaptoggle grenade" +bind 3 "ut_weaptoggle sidearm" +bind 4 "ut_weaptoggle secondary" +bind 5 "ut_weaptoggle primary" +bind 6 "ut_weaptoggle bomb" +bind = "ut_itemdrop" +bind + "ut_itemdrop" +bind [ "ut_itemprev" +bind ] "ut_itemnext" +bind a "+moveleft" +bind c "+movedown" +bind d "+moveright" +bind e "+button8" +bind m "maptoggle" +bind n "+button3" +bind p "ut_itemuse" +bind q "+button6" +bind r "+button5" +bind s "+back" +bind t "messagemode" +bind u "ui_radio" +bind w "+forward" +bind y "messagemode2" +bind CTRL "+button7" +bind SHIFT "+speed" +bind F1 "vote yes" +bind F2 "vote no" +seta record_demo_start "set record_demo vstr record_demo_stop; recorddemo" +seta record_demo_stop "set record_demo vstr record_demo_start; stoprecord" +seta record_demo "vstr record_demo_start" +bind F3 "ut_radio 1 1" // Affirmative +bind F4 "ut_radio 1 2" // Negative +bind F5 "ut_radio 3 3 Requesting medic. Status: $health" // Medic @ location +bind F6 "ut_radio 5 1 Enemy spotted at $crosshair // Enemy @ crosshair +bind F7 "ut_radio 7 2" // I'm going for the flag +bind F8 "ut_radio 5 5" // Incoming +bind F9 "ut_radio 2 6" // Requesting backup +bind F10 "ut_radio 9 9" // Thanks +bind F11 "play sound/misc/kcaction.wav;screenshotjpeg;ut_echo ^1Screenshot^7 taken." +bind F12 "vstr record_demo" +bind MOUSE1 "+attack" +bind MOUSE2 "ut_zoomin" +bind MOUSE3 "ut_zoomreset" +bind MWHEELDOWN "weapprev" +bind MWHEELUP "weapnext" + +//SETTINGS FOR CLIENT +seta win_fastmodechange "1" +seta cl_alttab "1" +seta in_mouse "-1" +seta name "New_UrT_Player" +set password "" +set rconpassword "" +seta s_volume "0.8" +seta s_musicvolume "0.5" +seta s_khz "22" +seta s_doppler "1" +seta racered "2" +seta raceblue "2" +seta weapmodes_save "00000110220000020002" +seta com_hunkmegs "512" +seta com_maxfps "85" +seta rate "8000" +seta cl_maxpackets "30" +seta cl_packetdup "1" +seta ut_timenudge "0" +seta r_picmip "0" +seta r_gamma "1.2" +seta r_displayrefresh "0" +seta r_customwidth "1920" +seta r_customheight "1080" +seta r_mode "-1" +seta r_fullscreen "1" +seta r_swapinterval "0" +seta r_colorbits "32" +seta r_texturebits "32" +seta r_texturemode "GL_LINEAR_MIPMAP_NEAREST" +seta r_ext_compressed_textures "0" +set r_overbrightbits "0" +set r_mapoverbrightbits "0" +seta com_introplayed "1" +seta ui_browserShowPB "2" +seta ui_browserShowBE "2" +seta ui_netsource "2" +seta ui_joingametype "0" +seta ui_netgametype "0" +seta ui_browsershowfull "1" +seta ui_browsershowempty "1" +seta ui_browserSortKey "4" +seta ui_browserSortDir "0" +seta cg_scopering "2" +seta cg_fov "95" +seta cg_drawfps "1" +seta cg_drawtimer "1" +seta cg_lagometer "1" +seta cg_speedo "0" +seta cg_nvg "0" +seta cg_sfxBreathing "1" +seta cg_autorecordmatch "1" +seta cl_drawclock "0" +seta cl_allowdownload "0" +seta cl_autodownload "1" +seta cg_autoscreenshot "0" +seta cg_drawcrosshair "4" +seta cg_crosshairsize "20" +seta cg_crosshairrgb "1 1 1 1" +seta cg_crosshairfriendrgb "1 0 0 1" +seta cg_scopeRGB "0 0 0 1" +seta cg_scopefriendrgb "1 0 0 1" +seta cg_scopePSG "0" +seta cg_scopeg36 "0" +seta cg_scopesr8 "0" +seta cg_maparrowscale "3.0" +seta cg_mapalpha "0.7" +seta cg_mappos "1" +seta cg_mapsize "150" +seta cg_maptoggle "1" +seta cg_drawteamoverlayscores "1" +seta cg_drawteamoverlay "1" +seta cg_crosshairnamessize "0.3" +seta cg_crosshairnamestype "3" +seta cg_drawcrosshairnames "1" +seta cg_drawteamscores "1" +seta cg_visibleBleeding "5" +seta cg_sfxShowDamage "1" +seta cg_hitsound "0" +seta cg_rgb "128 128 128" +seta funred "" +seta funblue "" +seta cg_sfxParticles "1" +seta cg_sfxSurfaceImpacts "1" +seta cg_marktotaltime "5000" +seta cg_chatTime "4000" +seta cg_msgTime "4000" +seta cg_chatHeight "4" +seta cg_drawHands "1" +seta cg_autoradio "0" +seta cg_novoicechats "0" +seta cg_teamchatsonly "0" +seta cg_gunsize "0" +seta cg_showbullethits "2" +seta cg_hudweaponinfo "2" +seta cg_sfxbrasstime "5000" +seta cg_predictitems "0" +seta r_dynamiclight "1" +seta cg_optimize "1" +seta cg_physics "1" +seta s_useopenal "0" +seta cl_battleye "0" +seta sv_battleye "0" + +//SETTINGS FOR SERVER +seta sv_allowdownload "0" +seta g_matchmode "0" +set g_gametype "0" +seta sv_maxclients "12" +set sv_pure "1" +seta sv_floodprotect "0" +seta g_warmup "15" +seta g_motd "Urban Terror, Presented by FrozenSand" +seta sv_joinmessage "Welcome to Urban Terror 4.0" +seta capturelimit "0" +seta sv_hostname "New Unnamed Server" +seta sv_strictauth "0" +seta g_followstrict "0" +seta fraglimit "0" +seta timelimit "0" +seta g_cahtime "60" +//sv_master1 = reserved for game engine +seta sv_master2 "master.urbanterror.net" +seta sv_master3 "master2.urbanterror.net" +seta sv_master4 "master.quake3arena.com" +seta sv_master5 "" +set bot_enable "0" +seta g_swaproles "0" +seta g_roundtime "3" +seta g_bombexplodetime "40" +seta g_bombdefusetime "10" +seta g_flagreturntime "30" +seta g_hotpotato "2" +seta g_waverespawns "1" +seta g_redwave "15" +seta g_bluewave "15" +seta g_respawndelay "8" +seta g_respawnprotection "2" +seta g_suddendeath "1" +seta g_maxrounds "0" +seta g_antiwarp "1" +seta g_antiwarptol "50" +seta g_friendlyfire "1" +seta g_teamforcebalance "1" +seta g_maxteamkills "2" +seta g_allowvote "0" +seta g_mapcycle "mapcycle.txt" +seta g_log "games.log" +set g_password "" +seta g_armbands "1" diff --git a/ioq3-compile64.patch b/ioq3-compile64.patch new file mode 100644 index 000000000000..e6e3b857b361 --- /dev/null +++ b/ioq3-compile64.patch @@ -0,0 +1,29 @@ +From 207a182ac419504c919b4c82c7eec4b70ff7b114 Mon Sep 17 00:00:00 2001 +From: "J. Olsen" <joshuaolsen@gmail.com> +Date: Fri, 7 Aug 2020 15:01:54 -0700 +Subject: [PATCH] ARCH_STRING missing on Linux/GNU x86_64 compile + +--- + code/qcommon/q_platform.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h +index 27ca856e..f3d0fe31 100644 +--- a/code/qcommon/q_platform.h ++++ b/code/qcommon/q_platform.h +@@ -180,6 +180,12 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + #define PATH_SEP '/' + ++#ifdef __x86_64__ ++#define ARCH_STRING "x86_64" ++#elif defined __i386__ ++#define ARCH_STRING "x86" ++#endif ++ + #if !defined(ARCH_STRING) + # error ARCH_STRING should be defined by the Makefile + #endif +-- +2.28.0 + diff --git a/ioq3-makefile.local b/ioq3-makefile.local new file mode 100644 index 000000000000..f0f8dc616ce0 --- /dev/null +++ b/ioq3-makefile.local @@ -0,0 +1,17 @@ +BUILD_STANDALONE := 1 +CLIENTBIN := urbanterror41 +SERVERBIN := urbanterror41-server +BUILD_SERVER := 1 +BUILD_CLIENT := 1 +BUILD_BASEGAME := 0 +BUILD_MISSIONPACK := 0 +BUILD_GAME_SO := 0 +BUILD_GAME_QVM := 0 +USE_FREETYPE := 1 +USE_INTERNAL_LIBS := 0 +USE_INTERNAL_ZLIB := 0 +USE_INTERNAL_JPEG := 0 +USE_INTERNAL_OGG := 0 +USE_INTERNAL_OPUS := 0 +USE_LOCAL_HEADERS := 0 +CFLAGS = "-DSTANDALONE -I/usr/include/opus -I/usr/include/taglib"
\ No newline at end of file diff --git a/ioq3-standalone.patch b/ioq3-standalone.patch new file mode 100644 index 000000000000..5f768daa53f6 --- /dev/null +++ b/ioq3-standalone.patch @@ -0,0 +1,44 @@ +From b9e6f092901b1c9a67363060e206027edd1bc832 Mon Sep 17 00:00:00 2001 +From: "J. Olsen" <joshuaolsen@gmail.com> +Date: Fri, 7 Aug 2020 14:20:03 -0700 +Subject: [PATCH] UrT STANDALONE + +--- + code/qcommon/q_shared.h | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h +index 86d9ac47..8c5c85c3 100644 +--- a/code/qcommon/q_shared.h ++++ b/code/qcommon/q_shared.h +@@ -27,18 +27,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + // A user mod should never modify this file + + #ifdef STANDALONE +- #define PRODUCT_NAME "iofoo3" +- #define BASEGAME "foobar" +- #define CLIENT_WINDOW_TITLE "changeme" +- #define CLIENT_WINDOW_MIN_TITLE "changeme2" +- #define HOMEPATH_NAME_UNIX ".foo" +- #define HOMEPATH_NAME_WIN "FooBar" ++ #define PRODUCT_NAME "ioq3" ++ #define BASEGAME "q3ut4" ++ #define CLIENT_WINDOW_TITLE "ioUrbanTerror" ++ #define CLIENT_WINDOW_MIN_TITLE "ioUrbanTerror console" ++ #define HOMEPATH_NAME_UNIX ".config/urbanterror41" ++ #define HOMEPATH_NAME_WIN "urbanterror41" + #define HOMEPATH_NAME_MACOSX HOMEPATH_NAME_WIN + // #define STEAMPATH_NAME "Foo Bar" + // #define STEAMPATH_APPID "" +- #define GAMENAME_FOR_MASTER "foobar" // must NOT contain whitespace +- #define CINEMATICS_LOGO "foologo.roq" +- #define CINEMATICS_INTRO "intro.roq" ++ #define GAMENAME_FOR_MASTER "q3ut4" // must NOT contain whitespace ++ #define CINEMATICS_LOGO "idlogo.RoQ" ++ #define CINEMATICS_INTRO "intro.RoQ" + // #define LEGACY_PROTOCOL // You probably don't need this for your standalone game + #else + #define PRODUCT_NAME "ioq3" +-- +2.28.0 + diff --git a/urbanterror41-server.sh b/urbanterror41-server.sh new file mode 100644 index 000000000000..fc773e934a0f --- /dev/null +++ b/urbanterror41-server.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/urbanterror41/ +exec ./urbanterror41-server "$@" diff --git a/urbanterror41.desktop b/urbanterror41.desktop new file mode 100644 index 000000000000..8c571d17b633 --- /dev/null +++ b/urbanterror41.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Urban Terror 4.1 +Type=Application +Categories=Game; +Terminal=false +Exec=/opt/urbanterror41/urbanterror41.x86_64 +Icon=/opt/urbanterror41/urbanterror41.svg +Name[en_US]=Urban Terror 4.1 diff --git a/urbanterror41.sh b/urbanterror41.sh new file mode 100644 index 000000000000..171334efd22e --- /dev/null +++ b/urbanterror41.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /opt/urbanterror41/ +exec ./urbanterror41.x86_64 "$@" |