summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Salvia Novella2019-09-14 08:59:26 +0200
committerAlberto Salvia Novella2019-09-14 08:59:26 +0200
commit0cb2390c3808df69f4e553a38a22a8dc3a265e82 (patch)
tree24084bd83d956d12b4bd9dfe87e94a2db2866b2d
parentac50f132a53d07bfda84c77e6296a6512f748a98 (diff)
downloadaur-0cb2390c3808df69f4e553a38a22a8dc3a265e82.tar.gz
2019-09-14 1568444365
-rw-r--r--.SRCINFO42
-rwxr-xr-xPUBLISH54
-rw-r--r--darkmod.desktop10
-rw-r--r--darkmod.pngbin9951 -> 0 bytes
-rw-r--r--darkmod.sh121
5 files changed, 73 insertions, 154 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 74fc77fff8ea..2acadd7b0eeb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,29 +1,25 @@
pkgbase = darkmod
- pkgdesc = DOOM III standalone mod based on the Thief series by Looking Glass Studios
- pkgver = 2.05
- pkgrel = 2
- url = http://www.thedarkmod.com/
- arch = i686
+ pkgdesc = First person forgery stealth game
+ pkgver = 2.07.1
+ pkgrel = 1
+ url = http://www.thedarkmod.com
arch = x86_64
+ license = GPL3
+ license = BSD
license = CCPL
- makedepends = unzip
- makedepends = xterm
- depends = lib32-glew
- depends = lib32-libpng
- depends = lib32-libjpeg-turbo
- depends = lib32-libpng12
- depends = lib32-curl
- depends = lib32-libxxf86vm
- depends = lib32-libpulse
- depends = lib32-alsa-plugins
- source = http://www.fidcal.com/darkuser/tdm_update_linux.zip
- source = darkmod.desktop
- source = darkmod.png
- source = darkmod.sh
- md5sums = ec81603a288ff6d10fb0d5999ee2652c
- md5sums = bc6537224b60c4ccfd04a51d80e340c1
- md5sums = 5309e528ce22f28ecc0e9781e43379e0
- md5sums = 7230f47d04072a7473f823d6925af947
+ makedepends = git
+ depends = curl
+ depends = glew
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = libpng12
+ depends = libpulse
+ depends = libxxf86vm
+ depends = openal
+ provides = darkmod
+ conflicts = darkmod
+ source = git+https://gitlab.com/es20490446e/darkmod-linux-packager.git
+ md5sums = SKIP
pkgname = darkmod
diff --git a/PUBLISH b/PUBLISH
new file mode 100755
index 000000000000..836b826cd781
--- /dev/null
+++ b/PUBLISH
@@ -0,0 +1,54 @@
+#! /bin/bash
+# (GPL3+) Alberto Salvia Novella (es20490446e.wordpress.com)
+
+
+mainFunction () {
+ summary=$(summary "${1}")
+
+ updateInfoFile
+ publish "${summary}"
+}
+
+
+changeToThisProgramDir () {
+ cd "$( dirname "${BASH_SOURCE[0]}" )"
+}
+
+
+echoOnError () {
+ function="${1}"
+ command="${2}"
+ error=$(eval "${command}" 2>&1 >"/dev/null")
+
+ if [ ${?} -ne 0 ]; then
+ echo "${function}: ${error}" >&2
+ exit 1
+ fi
+}
+
+
+publish () {
+ summary="${1}"
+
+ echoOnError "publish: add" "git add ."
+ git commit --message="${summary}" 2>&1 >"/dev/null"
+ echoOnError "publish: push" "git push"
+}
+
+
+summary () {
+ summary="${1}"
+
+ if [ "${summary}" == "" ]; then
+ echo $(date "+%Y-%m-%d %s")
+ fi
+}
+
+
+updateInfoFile () {
+ echoOnError "updateInfoFile" "makepkg --printsrcinfo > .SRCINFO"
+}
+
+
+changeToThisProgramDir
+mainFunction ${@}
diff --git a/darkmod.desktop b/darkmod.desktop
deleted file mode 100644
index c9488f8a7a9f..000000000000
--- a/darkmod.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Type=Application
-Encoding=UTF-8
-Name=DarkMod
-GenericName=Mod based on the Thief series
-Comment=
-Icon=darkmod
-Exec=darkmod
-Terminal=false
-Categories=Game;ActionGame;
diff --git a/darkmod.png b/darkmod.png
deleted file mode 100644
index 5533cb723264..000000000000
--- a/darkmod.png
+++ /dev/null
Binary files differ
diff --git a/darkmod.sh b/darkmod.sh
deleted file mode 100644
index ec814a75bb99..000000000000
--- a/darkmod.sh
+++ /dev/null
@@ -1,121 +0,0 @@
-#!/bin/bash
-
-# Should return false if darkmod folder does not exist
-if [ ! -d $(eval echo ~$USER)/.local/share/darkmod/fms ]; then
- mkdir -p $(eval echo ~$USER)/.local/share/darkmod/fms
-fi
-
-function link_file() {
- if [ ! -f "$(eval echo ~$USER)/.local/share/darkmod/$1" ]; then
- echo -e "Linking missing game file $1\n"
- ln -s "/opt/darkmod/$1" "$(eval echo ~$USER)/.local/share/darkmod/$1"
- fi
-}
-
-# Not only was the saintlucia mission renamed to stlucia, but these symlinks
-# break saving games and prevent mission info from showing in the menu
-# The replacement links later fix this
-
-if [ -L "$(eval echo ~$USER)/.local/share/darkmod/fms/saintlucia" ]; then
- echo -e "Removing symlink to old Saint Lucia mission"
- rm "$(eval echo ~$USER)/.local/share/darkmod/fms/saintlucia"
-fi
-
-if [ -L "$(eval echo ~$USER)/.local/share/darkmod/fms/training_mission" ]; then
- echo -e "Removing symlink to old Training Mission"
- rm "$(eval echo ~$USER)/.local/share/darkmod/fms/training_mission"
-fi
-
-link_file "tdm_ai_humanoid_nobles01.pk4"
-link_file "tdm_models01.pk4"
-link_file "tdm_sound_vocals06.pk4"
-link_file "tdm_textures_sfx01.pk4"
-link_file "tdm_ai_humanoid_pagans01.pk4"
-link_file "tdm_models02.pk4"
-link_file "tdm_sound_vocals07.pk4"
-link_file "tdm_textures_stone_brick01.pk4"
-link_file "tdm_ai_humanoid_townsfolk01.pk4"
-link_file "tdm_models_decls01.pk4"
-link_file "tdm_sound_vocals_decls01.pk4"
-link_file "tdm_textures_stone_cobblestones01.pk4"
-link_file "tdm_ai_humanoid_undead01.pk4"
-link_file "tdm_player01.pk4"
-link_file "tdm_standalone.pk4"
-link_file "tdm_textures_stone_flat01.pk4"
-link_file "tdm_ai_monsters_spiders01.pk4"
-link_file "tdm_prefabs01.pk4"
-link_file "tdm_textures_base01.pk4"
-link_file "tdm_textures_stone_natural01.pk4"
-link_file "tdm_ai_steambots01.pk4"
-link_file "tdm_sound_ambient01.pk4"
-link_file "tdm_textures_carpet01.pk4"
-link_file "tdm_textures_stone_sculpted01.pk4"
-link_file "tdm_base01.pk4"
-link_file "tdm_sound_ambient02.pk4"
-link_file "tdm_textures_decals01.pk4"
-link_file "tdm_textures_window01.pk4"
-
-if [ ! -d "$(eval echo ~$USER)/.local/share/darkmod/fms/stlucia" ]; then
- echo -e "Linking missing game file fms/stlucia\n"
- mkdir "$(eval echo ~$USER)/.local/share/darkmod/fms/stlucia"
- ln -s "/opt/darkmod/fms/stlucia/stlucia.pk4" "$(eval echo ~$USER)/.local/share/darkmod/fms/stlucia/stlucia.pk4"
-fi
-if [ ! -d "$(eval echo ~$USER)/.local/share/darkmod/fms/newjob" ]; then
- echo -e "Linking missing game file fms/newjob\n"
- mkdir "$(eval echo ~$USER)/.local/share/darkmod/fms/newjob"
- ln -s "/opt/darkmod/fms/newjob/newjob.pk4" "$(eval echo ~$USER)/.local/share/darkmod/fms/newjob/newjob.pk4"
-fi
-if [ ! -d "$(eval echo ~$USER)/.local/share/darkmod/fms/training_mission" ]; then
- echo -e "Linking missing game file fms/training_mission\n"
- mkdir "$(eval echo ~$USER)/.local/share/darkmod/fms/training_mission"
- ln -s "/opt/darkmod/fms/training_mission/training_mission.pk4" "$(eval echo ~$USER)/.local/share/darkmod/fms/training_mission/training_mission.pk4"
-fi
-
-link_file "tdm_defs01.pk4"
-link_file "tdm_sound_ambient03.pk4"
-link_file "tdm_textures_door01.pk4"
-link_file "tdm_textures_wood01.pk4"
-link_file "tdm_env01.pk4"
-link_file "tdm_sound_ambient_decls01.pk4"
-link_file "tdm_textures_fabric01.pk4"
-link_file "tdm_ai_animals01.pk4"
-link_file "tdm_fonts01.pk4"
-link_file "tdm_sound_sfx01.pk4"
-link_file "tdm_textures_glass01.pk4"
-link_file "tdm_ai_base01.pk4"
-link_file "tdm_game01.pk4"
-link_file "tdm_sound_sfx02.pk4"
-link_file "tdm_textures_metal01.pk4"
-link_file "tdm_version_info.txt"
-link_file "tdm_ai_humanoid_builders01.pk4"
-link_file "tdm_game02.pk4"
-link_file "tdm_sound_vocals01.pk4"
-link_file "tdm_textures_nature01.pk4"
-#link_file "thedarkmod.x86" # May want to copy this instead
-link_file "tdm_ai_humanoid_females01.pk4"
-link_file "tdm_gui01.pk4"
-link_file "tdm_sound_vocals02.pk4"
-link_file "tdm_textures_other01.pk4"
-link_file "tdm_ai_humanoid_guards01.pk4"
-link_file "tdm_gui_credits01.pk4"
-link_file "tdm_sound_vocals03.pk4"
-link_file "tdm_textures_paint_paper01.pk4"
-link_file "tdm_ai_humanoid_heads01.pk4"
-link_file "tdm_sound_vocals04.pk4"
-link_file "tdm_textures_plaster01.pk4"
-link_file "tdm_ai_humanoid_mages01.pk4"
-link_file "tdm_sound_vocals05.pk4"
-link_file "tdm_textures_roof01.pk4"
-
-if [ ! -f $(eval echo ~$USER)/.local/share/darkmod/darkmod.ini ]; then
- echo -e "Copying darkmod.ini"
- cp /opt/darkmod/darkmod.ini $(eval echo ~$USER)/.local/share/darkmod/darkmod.ini
-fi
-
-if [ ! -f $(eval echo ~$USER)/.local/share/darkmod/thedarkmod.x86 ]; then
- echo -e "Copying darkmod executable"
- cp /opt/darkmod/thedarkmod.x86 $(eval echo ~$USER)/.local/share/darkmod/thedarkmod.x86
- chmod +x $(eval echo ~$USER)/.local/share/darkmod/thedarkmod.x86
-fi
-
-$(eval echo ~$USER)/.local/share/darkmod/thedarkmod.x86