diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 14:49:23 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-08-11 16:11:07 +0200 |
commit | 7cbd24dd2f99c160b0e4c9765783b2294caca6dc (patch) | |
tree | 85c37ca3a67af4c837a249908b13c3c7e607fbb1 /msys2-cross-configure.sh | |
parent | 1a163bdb8b4878f456fb04b33978a92f3fcd8e91 (diff) | |
download | fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.tar.gz fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.tar.xz fiv-7cbd24dd2f99c160b0e4c9765783b2294caca6dc.zip |
Bundle a fuller installation of Perl/ExifTool
wperl is necessary to get rid of the console window,
which is merely one of several issues with the PAR Packer-based
ExifTool bundle used in the last commit.
The Perl installation could be heavily trimmed down,
but it seems to require a very manual process.
Diffstat (limited to 'msys2-cross-configure.sh')
-rwxr-xr-x | msys2-cross-configure.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/msys2-cross-configure.sh b/msys2-cross-configure.sh index 848749a..8887928 100755 --- a/msys2-cross-configure.sh +++ b/msys2-cross-configure.sh @@ -34,10 +34,11 @@ fetch() { [ -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 + version=$(curl -# https://exiftool.org/ver.txt) + name=exiftool-$version.tar.gz remotename=Image-ExifTool-$version.tar.gz + status Fetching "$remotename" + [ -f "$name" ] || curl -#o "$name" "https://exiftool.org/$remotename" + ln -sf "$name" exiftool.tar.gz } verify() { @@ -54,7 +55,10 @@ extract() { do bsdtar -xf "$i" --strip-components 1 mingw64 done - bsdtar -xOf exiftool.zip > bin/exiftool.exe + bsdtar -xf exiftool.tar.gz + mv Image-ExifTool-*/exiftool bin + mv Image-ExifTool-*/lib/* lib/perl5/site_perl + rm -rf Image-ExifTool-* } configure() { @@ -111,6 +115,7 @@ cd "$msys2_root" dbsync fetch mingw-w64-x86_64-gtk3 mingw-w64-x86_64-lcms2 \ mingw-w64-x86_64-libraw mingw-w64-x86_64-libheif \ + mingw-w64-x86_64-perl mingw-w64-x86_64-perl-win32-api \ mingw-w64-x86_64-libwinpthread-git # Because we don't do "provides"? verify extract |