build-support gogUnpackHook: support for unpacking games from gog.com

This commit is contained in:
Peter Hoeg
2018-02-12 22:28:06 +08:00
parent 646abe9b29
commit 126cc690ac
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,11 @@
unpackPhase="unpackGog"
unpackGog() {
runHook preUnpackGog
innoextract --silent --extract --exclude-temp "${src}"
find . -depth -print -execdir rename -f 'y/A-Z/a-z/' '{}' \;
runHook postUnpackGog
}