pantry/projects/zsh.sourceforge.io/package.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-28 16:58:26 +03:00
distributable:
url: https://prdownloads.sourceforge.net/zsh/zsh/{{version.raw}}/zsh-{{version.raw}}.tar.xz
strip-components: 1
versions:
#TODO https://sourceforge.net/projects/zsh/rss?path=/zsh
- 5.9
provides:
- bin/zsh
dependencies:
#TODO tighten these up
invisible-island.net/ncurses: '*'
pcre.org: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
script: |
2023-03-21 21:25:19 +03:00
SHARE="{{tea.prefix}}/zsh.sourceforge.io"
2023-01-28 16:58:26 +03:00
./configure $ARGS \
--enable-site-fndir="$SHARE/share/zsh/site-functions" \
--enable-site-scriptdir="$SHARE/share/zsh/site-scripts"
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --prefix={{prefix}}
- --enable-fndir={{prefix}}/functions
- --enable-scriptdir={{prefix}}/scripts
- --enable-runhelpdir=#{pkgshare}/help
- --enable-cap
- --enable-maildir-support
- --enable-multibyte
- --enable-pcre
- --enable-zsh-secure-free
- --enable-unicode9
- --enable-etcdir=/etc
- --with-tcsetpgrp
- DL_EXT=bundle
test: |
test "$(zsh -c echo\ fancy-a-cuppa)" = 'fancy-a-cuppa'
zsh -c "printf -v hello -- '%s'"