summaryrefslogtreecommitdiff
path: root/Ports/zsh/package.sh
blob: f8456eb8803aabb505c5e9e433a911b08aa88faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env -S bash ../.port_include.sh
port=zsh
version=5.9
files="https://sourceforge.net/projects/zsh/files/zsh/${version}/zsh-${version}.tar.xz zsh-${version}.tar.xz 9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5"
auth_type="sha256"
useconfigure=true
use_fresh_config_sub=true

pre_configure() {
    run "./Util/preconfig"
}

post_configure() {
    run_replace_in_file "s/define HAVE_PRCTL 1/undef HAVE_PRCTL/" config.h
}