Comments (13)
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 $pkgbuild
variable, and added a file-copy that I realize is probably not necessary), but I can change my project to work with the differences.
from cargo-aur.
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.
from cargo-aur.
That would be the preferred configuration for me.
from cargo-aur.
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.
from cargo-aur.
Would it make sense to also add some light templating, @fosskers ? I assume stuff like {app_name}
and {version}
should be usable from those strings, possibly even with package information like release date, etc. tinytemplate
or full on askama
could be good fits.
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)
from cargo-aur.
@t3hmrman What sort of templating? Can you provide a sample [package.metadata.aur]
that includes some of what you're imagining?
@nms-scribe I will add this feature as soon as I'm able.
from cargo-aur.
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.
from cargo-aur.
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 /etc/$pkgname/$pkgver/...
. cargo aur
would just copy the target string as-is, and you'd get the best of both worlds I think.
from cargo-aur.
Ahh thanks! this makes sense -- so this would basically already be supported. thanks for making me aware of that!
from cargo-aur.
so this would basically already be supported
As soon as I implement the original feature itself, yeah.
from cargo-aur.
Update: I have this scheduled to work on in mid-December.
from cargo-aur.
@nms-scribe Can you take a look at #24 and see if it's comparable to what you implemented?
from cargo-aur.
Released as 1.7.0
.
from cargo-aur.
Related Issues (12)
- Support for gitlab release URLs HOT 3
- Add support for post installation script HOT 16
- Add support for differing binary names HOT 3
- Output to target/ HOT 6
- Use SPDX license identifier HOT 2
- support rust workspace HOT 5
- Make "homepage" optional in Cargo.toml HOT 1
- unexpected free argument `aur` HOT 4
- Fails for singular author HOT 2
- Feature request: Support non-binary AUR package using crates.io as source HOT 5
- Binaries are stripped by default HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-aur.