Wiimm / wiimms-szs-tools

»Wiimms SZS Tools« is a set of command line tools to extract, modify and create different files of game Mario Kart Wii and of other Nintendo games.
https://szs.wiimm.de
46 stars 4 forks source link

Allow different install path in setup.sh #1

Open larsenv opened 3 years ago

larsenv commented 3 years ago

Wiimm,

I'm trying to get Wiimms SZS Tools as a formula for the Homebrew package manager.

However, in order to do that, the maintainers to the project want a way to install binaries to be installable to a path supplied in the arguments, as Homebrew doesn't always install to /usr/local/. It doesn't look like you can change the path in setup.sh, and the only way to change it is to sed it, which the maintainers don't like.

If you could add support for using a different path than /usr/local/ in setup.sh, that would be great.

Thanks.

Leseratte10 commented 3 years ago

I just talked to Wiimm about that. The only place where this path is used is in the setup/install.sh. And all that install script does is check if you're root, make folders, then call "install" to copy the binaries to /usr/local/bin/ and some additional data to /usr/local/share/szs. The easiest way would probably be to just not use the existing install.sh and just call the few "install" or "cp" calls yourself in the Homebrew formula instead of relying on the install script that's in this repo.

Or is there anything that would prevent that from working?

larsenv commented 3 years ago

Maybe, I'm not sure. I kind of gave up on adding the formula to Homebrew because it's kind of a pain. I was just trying to get some good PRs made for Hacktoberfest.

Wiimm commented 3 years ago

I'm working on it (with low priority). A frist step is to enable a configuration file, so that the installed tools know about the pathes. And then I plan a file install.conf, where you can modify the pathes. A template for this should be install.conf.templ.

Relevant pathes: