Skip to content

Conversation

dot-asm
Copy link
Collaborator

@dot-asm dot-asm commented Nov 2, 2023

Compile latest release tag and install it as pkg-config package.

@dot-asm
Copy link
Collaborator Author

dot-asm commented Nov 2, 2023

To give it a shot execute following commands

mkdir -p /tmp/foo/include mkdir -p /tmp/foo/lib/pkgconfig curl -sSf https://raw.githubusercontent.com/dot-asm/blst/pkg-install.sh/build/pkg-install.sh | env PKG_CONFIG_PATH=/tmp/foo/lib/pkgconfig sh` 

Examine /tmp/foo tree structure and cleanup as deemed appropriate.

@arrowd
Copy link

arrowd commented Jan 28, 2024

Bumped into this when porting libblst to FreeBSD. For now I just added my own .pc file to the downstream package, so it'd be great to have this PR merged in.

git clone ${SRC:-"https://github.com/supranational/blst"} blst.$$
( trap '[ $? -ne 0 ] && rm "${DST}/blst.pc" 2>/dev/null' 0
cd blst.$$
tag=`git tag --sort=v:refname | tail -1`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The git tag version is currently v0.3.16 and the leading v messes up version comparisons.

I had to modify that line to:

 tag=`git tag --sort=v:refname | tail -1 | sed "s/^v//"` 
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the next line. I've pushed a fixup...

@erikd
Copy link

erikd commented Oct 2, 2025

So glad to have found this. Saved me at least half an hour.

Compile latest release tag and install it as pkg-config package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants