Bump revision for pkgs depending on jpeg (abi_depends bump).
[xbps/ojab.git] / srcpkgs / bash / template
blob0ac51bed52d280ffb04f2a5704e3d54448834e99
1 # Template build file for 'bash'.
2 pkgname=bash
3 bash_patchlevel=035
4 bash_distver=4.0
5 version=${bash_distver}.${bash_patchlevel}
6 wrksrc=${pkgname}-${bash_distver}
7 distfiles="http://ftp.gnu.org/gnu/bash/bash-${bash_distver}.tar.gz"
8 build_style=gnu_configure
9 configure_args="--without-bash-malloc --with-curses --bindir=/bin
10  --enable-array-variables --enable-brace-expansion --enable-casemod-attributes
11  --enable-casemod-expansions --enable-command-timing --enable-cond-command
12  --enable-cond-regexp --enable-coprocesses --enable-debugger
13  --enable-directory-stack --enable-dparen-arithmetic --enable-extended-glob
14  --enable-help-builtin --enable-history --enable-job-control --enable-multibyte
15  --enable-process-substitution --enable-progcomp --enable-prompt-string-decoding
16  --enable-select --enable-net-redirections --enable-restricted
17  ac_cv_func_working_mktime=yes"
18 short_desc="The GNU Bourne Again Shell"
19 maintainer="Juan RP <xtraeme@gmail.com>"
20 checksum=9793d394f640a95030c77d5ac989724afe196921956db741bcaf141801c50518
21 long_desc="
22  Bash is an sh-compatible shell that incorporates useful features from
23  the Korn shell (ksh) and C shell (csh). It is intended to conform to
24  the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
26  It offers functional improvements over sh for both programming and
27  interactive use; these include command line editing, unlimited size
28  command history, job control, shell functions and aliases, indexed
29  arrays of unlimited size, and integer arithmetic in any base from two
30  to sixty-four. In addition, most sh scripts can be run by Bash without
31  modification."
33 base_chroot=yes
34 essential=yes
35 register_shell="/bin/bash"
37 Add_dependency run      glibc
38 Add_dependency build    ncurses
39 Add_dependency run      ncurses-libs
40 Add_dependency run      coreutils
42 pre_configure()
44         local url="http://ftp.gnu.org/gnu/bash/bash-4.0-patches"
46         if [ "${bash_patchlevel}" -gt 000 ]; then
47                 cd ${XBPS_SRCDISTDIR} || return 1
48                 for p in $(seq -w 001 ${bash_patchlevel}); do
49                         [ -f ${XBPS_SRCDISTDIR}/bash40-${p} ] && continue
50                         $XBPS_FETCH_CMD ${url}/bash40-$p
51                 done
52         fi
53         cd ${wrksrc}
54         for p in $(seq -w 001 ${bash_patchlevel}); do
55                 patch -s -Np0 -i ${XBPS_SRCDISTDIR}/bash40-${p} && \
56                         msg_normal "Applying patch bash40-$p."
57         done