-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing data into /usr/local/share #19
Comments
That's a reasonable request. Perhaps something like: [package.metadata.aur]
files = [
["/path/to/original/file", "/absolute/path/to/desired/location"],
# ... and so on ...
] Any thoughts? Naturally at some point some complexity threshold is crossed and it becomes faster for everyone to just say "manage the PKGBUILD yourself", but in this case I think this could be implemented with little toil. |
That would be the preferred configuration for me. |
Since I wanted this soon and didn't want to bother you, I (forked your project)[https://github.com/nms-scribe/cargo-aur] to add that functionality. You're welcome to fetch the changes out of that if you haven't started working on your own. I don't know if I did it the way you would have done it. Thanks for the useful tool. |
Would it make sense to also add some light templating, @fosskers ? I assume stuff like Also, if you'd like someone to try and take this on I'd be happy to (after looking at what @nms-scribe has started) |
@t3hmrman What sort of templating? Can you provide a sample @nms-scribe I will add this feature as soon as I'm able. |
Hey @fosskers, using your example earlier -- I was thinking something like this: files = [
["/path/to/config.example.toml", "/etc/{app_name}/{version}/config.example.toml"],
# ... and so on ...
] Maybe it's not necessary (package authors could just maintain every single version and grow the list), but planning for such a feature might be nice. |
Ah I see what you mean. Actually... if you wanted to be really clever, you could put PKBUILD bash-based placeholders in the target string yourself! Like |
Ahh thanks! this makes sense -- so this would basically already be supported. thanks for making me aware of that! |
As soon as I implement the original feature itself, yeah. |
Update: I have this scheduled to work on in mid-December. |
@nms-scribe Can you take a look at #24 and see if it's comparable to what you implemented? |
I'm not in a place where I can test it right now. Reviewing the code and docs, it looks fine. There are some differences in implementation (for example, I hard-coded the |
Released as |
My project includes some data (mostly sample files) which I would like my aur package to install into
/usr/local/share/<appname>
. Can cargo-aur be configured to include these files in the tar file in a way that they would be copied into the right place on install?The text was updated successfully, but these errors were encountered: