pantry/projects/github.com/besser82/libxcrypt/package.yml
Jacob Heider 759cf2afc6
fix(xcrypt) (#1526)
* fix(xcrypt)

* disable symvers
2023-04-21 03:15:06 -04:00

31 lines
778 B
YAML

distributable:
url: https://github.com/besser82/libxcrypt/releases/download/v{{version}}/libxcrypt-{{version}}.tar.xz
strip-components: 1
versions:
github: besser82/libxcrypt/releases/tags
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
freedesktop.org/pkg-config: ~0.29
perl.org: '*'
script: |
./configure $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-valgrind
- --disable-symvers
- --disable-failure-tokens
test:
dependencies:
tea.xyz/gx/cc: c99
script: |
cc -L{{prefix}}/lib -lcrypt fixture.c
./a.out
# ^^ we nee to add the -L because system lib paths come first on Linux
# and most linuxes have a (arcaic) libcrypt.so in /lib