Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

Use ldd instead of scanelf in install.sh #53

@exot

Description

@exot

Hey,

I just figured that the install.sh script was not working properly for me, because scanelf is not present on my system. However, the script can easily be changed to work with ldd instead of scanelf like so:

#!/usr/bin/env bash
set -e

which profanity > /dev/null
which ldd > /dev/null
which sed > /dev/null

profanity="$(which profanity)"
python_version="$(ldd "${profanity}" | grep libpython | sed -nre 's/^\s*libpython([0-9]+\.[0-9]+).*$/\1/p')"

python"${python_version}" setup.py install --force --user --prefix=
mkdir -p ~/.local/share/profanity/plugins
cp deploy/prof_omemo_plugin.py ~/.local/share/profanity/plugins/

I do not know whether this works on all systems, but as far as I can see it should.

Best,

  Daniel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions