[arch-general] Question about packaging a library (AUR)
lists at 2ion.de
lists at 2ion.de
Tue Jul 21 16:32:39 UTC 2020
On Tue, Jul 21, 2020 at 05:25:26PM +0200, Dominik Schrempf via arch-general wrote:
> Do you know an appropriate way to deal with such cases? Is it
> preferable to install the executable in a separate folder alongside
> the library? For example, /opt/transcribe?
It seems your AUR package is distributing an executable blob anyway, so
packing the application into /opt/transcribe looks like the cleanest
solution to me. Into /usr/bin, install a solid wrapper that calls the
application instead, or if it works, a symlink.
If you look at the slackbuild from here
https://git.slackbuilds.org/slackbuilds/plain/audio/transcribe/transcribe.SlackBuild
you'll see that maybe installing the .so file into the canonical
directory for gstreamer plugins might be the correct way to
"deconstruct" the distribution:
if [ -e libgstvideosection.so ]; then
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/gstreamer-1.0
install -m0755 libgstvideosection.so $PKG/usr/lib$LIBDIRSUFFIX/gstreamer-1.0
fi
Perhaps you can get this to work analog to Slack on Arch. You already
have a dep gst-plugins-base-libs that provides /usr/lib/gstreamer-1.0.
More information about the arch-general
mailing list