🔒 Repository is read-only – file editing is disabled.

recipes/utils/zsh/PAGBUILD.yaml main

60 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
pkgname: zsh
pkgver: '5.9.2'
pkgrel: '1'
pkgdesc: 'A very advanced and programmable command interpreter (shell) for UNIX'
url: 'https://www.zsh.org'
arch: x86_64
depends: []
makedepends:
- ncurses
- gawk
- grep
- pcre2
- texinfo

source:
- 'https://www.zsh.org/pub/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- SKIP

hooks:
  'post-install': |
    name=zsh
    version=5.9.2
    release=1
    grep -q bin/zsh etc/shells || echo "/bin/zsh" >> etc/shells

build: |
  cd ${pkgname}-${pkgver}

  sed -e 's/set_from_init_file/texinfo_&/' \
      -i Doc/Makefile.in

  sed -e 's/^main/int &/'      \
      -e 's/exit(/return(/'    \
      -i aczsh.m4 configure.ac
  sed -e 's/test = /&(char**)/' \
      -i configure.ac

  autoconf

  #sed -e 's|/etc/z|/etc/zsh/z|g' \
  #    -i Doc/*.*
  ./configure --prefix=/usr \
              --bindir=/bin \
              --sysconfdir=/etc/zsh \
              --enable-etcdir=/etc/zsh
  make
  makeinfo Doc/zsh.texi --html -o Doc/html
  makeinfo Doc/zsh.texi --html --no-split --no-headers -o Doc/zsh.html
  makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt
  make DESTDIR=${PKGDIR} install

  make infodir=${PKGDIR}/usr/share/info install.info
  install -v -dm755 ${PKGDIR}/usr/share/doc/zsh-${pkgver}/html
  install -v -m644 Doc/html/* ${PKGDIR}/usr/share/doc/zsh-${pkgver}/html
  install -v -m644 Doc/zsh.{html,txt} ${PKGDIR}/usr/share/doc/zsh-${pkgver}

package: |
  true