pantry/projects/gnu.org/tar/package.yml
Jacob Heider 48e9f14b30
fix(tar)[1]
closes #2620
2023-07-18 19:59:58 -04:00

33 lines
710 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 }}
- --with-libiconv-prefix={{ deps.gnu.org/libiconv.prefix }}
test:
script:
tar czvf test.tar.gz {{ prefix }}