[arch-general] Question about packaging a library (AUR)
bts at square-r00t.net
Tue Jul 21 20:14:21 UTC 2020
On 7/21/20 12:46 PM, Eli Schwartz via arch-general wrote:
> $ pkg-config gstreamer-1.0 --variable=pluginsdir
> It's not an option to provide the library in /usr/bin, but a usable
> workaround would be to symlink the binary in /usr/bin but install it in
> /opt/transcribe/. Check to see if it correctly picks up the right
> location, though. ;) You might need to create a wrapper script instead,
> which invokes it without a symlink.
> You may wish to clarify with upstream if it can use the more customary
This is how I would (and do, for one or two packages I maintain) do it.
Note that this was essentially the primary purpose of /opt.
A symlink may or may not work. If it does not, a wrapper that calls the
binary and pass along arguments specified at invocation would work fine.
e.g. something like:
# 3/4 times if this works, a symlink in /usr/bin/ works.
# OR, if it relies heavily on relative paths, it's safer to do:
GPG info: https://square-r00t.net/gpg-info
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 899 bytes
Desc: OpenPGP digital signature
More information about the arch-general