aboutsummaryrefslogtreecommitdiff
path: root/msys2-cross-configure.sh
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-11 11:36:31 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-11 16:10:04 +0200
commit1a163bdb8b4878f456fb04b33978a92f3fcd8e91 (patch)
tree52d44049003bc1a338244282f8f77a1b4eaf6f47 /msys2-cross-configure.sh
parentcf19f8287547c523f65879b9e9477950c81a9eed (diff)
downloadfiv-1a163bdb8b4878f456fb04b33978a92f3fcd8e91.tar.gz
fiv-1a163bdb8b4878f456fb04b33978a92f3fcd8e91.tar.xz
fiv-1a163bdb8b4878f456fb04b33978a92f3fcd8e91.zip
Resolve a few issues with MSYS2 cross-builds
- Fix launching of subprocesses (missing gspawn helpers). - Discard unused GSettings schemas. - Make the program find its user guide. - Bundle a somewhat suboptimal version of ExifTool.
Diffstat (limited to 'msys2-cross-configure.sh')
-rwxr-xr-xmsys2-cross-configure.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/msys2-cross-configure.sh b/msys2-cross-configure.sh
index 602548e..848749a 100755
--- a/msys2-cross-configure.sh
+++ b/msys2-cross-configure.sh
@@ -33,6 +33,11 @@ fetch() {
status Fetching "$name"
[ -f "packages/$name" ] || curl -#o "packages/$name" "$repository/$name"
done
+
+ name=exiftool-$(curl -# https://exiftool.org/ver.txt).zip
+ status Fetching "$name"
+ [ -f "$name" ] || curl -#o "$name" "https://exiftool.org/$name"
+ ln -sf "$name" exiftool.zip
}
verify() {
@@ -48,6 +53,8 @@ extract() {
for i in packages/*
do bsdtar -xf "$i" --strip-components 1 mingw64
done
+
+ bsdtar -xOf exiftool.zip > bin/exiftool.exe
}
configure() {