You are not logged in.

#1 Yesterday 12:56:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,936

convert extracted filename to lowercase in PKGBUILD

I currently have 4 wine prefixes for a Might & Magic 7 : For blood and Honor

vanilla install from cd
gog install
gog install + mod1
gog install + mod2

All 4 have grayface patch installed ( bugfixes and changes to allow running on later directx/windows versions) and the mods also include mmextension .
Currently all those prefixes are created manually on an ext4 /home filesystem .

I expect there will soon be 2 or 3 more as I intend to help testing a mod.
I'm considering to create packages for them.

The original is from around 1998 and uses dos-style uppercase filenames. gog install mixes upper & lowercase names and so do the mods .

As the mods overwrite files from the install the case of the filenames matters.
Fortunately the mods come as zip files and unzip has the option -LL to force lowercase on extraction .

I could download and extract those files manually in prepare() using unzip with that option, but I'd like to put them in source= and let makepkg do the job.

Unzip is fast and takes about a minute to extract the largest mod with 3.1 GiB compressed data.

Is there a way to mount folders case-insensitive ?

If not, how to convert the extracted files and subfolder contents to lowercase efficiently ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#2 Today 02:08:21

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,138

Re: convert extracted filename to lowercase in PKGBUILD

Have you considered using noextract and using the first line of prepare() as your custom extraction with -LL, similar to the 'lrzip' example used in the Wiki?

Offline

Board footer

Powered by FluxBB