pantry/projects/mozilla.org/nspr/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

38 lines
No EOL
841 B
YAML

distributable:
url: https://archive.mozilla.org/pub/nspr/releases/v{{version}}/src/nspr-{{version}}.tar.gz
strip-components: 1
versions:
url: https://archive.mozilla.org/pub/nspr/releases/
match: v\d+\.\d+\.\d+\
strip: /^v-/
build:
dependencies:
script:
- ./nspr/configure $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
- run: |
mv nspr/* .
rmdir nspr
ln -s . nspr
working-directory: ${{prefix}}/include
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-debug
- --enable-strip
- --with-pthreads
- --enable-ipv6
- --enable-64bit
darwin:
ARGS:
- --enable-macos-target=$(sw_vers -productVersion)
provides:
- bin/nspr-config
test:
script:
nspr-config --version | grep {{version}}