pantry/projects/gnu.org/tar/package.yml
Jacob Heider 38e3eab6c3
fix(tar)
closes #2606
2023-07-18 19:39:43 -04:00

34 lines
734 B
YAML

distributable:
url: https://ftp.gnu.org/gnu/tar/tar-{{ version.raw }}.tar.gz
strip-components: 1
versions:
url: https://ftp.gnu.org/gnu/tar/
match: /tar-(\d+\.\d+(\.\d+)?)\.tar\.gz/
strip:
- /tar-/
- /.tar.gz/
provides:
- bin/tar
build:
dependencies:
tea.xyz/gx/cc: 'c99'
tea.xyz/gx/make: '*'
gnu.org/libiconv: '*'
script: |
./configure $ARGS
make -v --jobs {{ hw.concurrency }} install
env:
#FIXME for our docker images, but we should make a `build` user for those
FORCE_UNSAFE_CONFIGURE: 1
ARGS:
- --prefix={{ prefix }}
- --disable-debug
- --with-libiconv-prefix={{ deps.gnu.org/libiconv.prefix }}
test:
script:
tar czvf test.tar.gz {{ prefix }}