summaryrefslogtreecommitdiff
path: root/zsh/Pkgfile
blob: 373a4892478aeba737cb37b0aeb082bc59a91764 (plain)
    1 # Description: Very powerfull shell
    2 # URL: https://www.zsh.org/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: libpcre
    5 
    6 name=zsh
    7 version=5.9
    8 release=1
    9 source=(https://www.zsh.org/pub/$name-$version.tar.xz
   10   _prt-get zsh-lovers.1)
   11 
   12 build() {
   13   cd $name-$version
   14 
   15   # fix paths https://crux.nu/bugs/index.php?getfile=539
   16   sed -i 's#/usr/share/keymaps#/usr/share/kbd/keymaps#g' Completion/Unix/Command/_loadkeys
   17   sed -i 's#/usr/share/misc/usb.ids#/usr/share/usb.ids#g' Completion/Linux/Command/_lsusb
   18 
   19   # fix a bug in recent glibc versions (2.16)
   20   sed -e '/#include "attr.mdh"/d;/#include "attr.pro/d' \
   21     -e 's|\(#include <sys/xattr.h>\)|\1\n#include "attr.mdh"\n#include "attr.pro"|g' \
   22     -i Src/Modules/attr.c
   23 
   24   for _fpath in AIX Cygwin Darwin Debian Mandriva openSUSE Redhat Solaris; do
   25     rm -rf Completion/$_fpath
   26     sed 's#\s*Completion/$_fpath/\*/\*##g' -i Src/Zle/complete.mdd
   27   done
   28   rm -f  Completion/Linux/Command/_{pkgtool,rpmbuild,yast}
   29   rm -f  Completion/Unix/Command/_{osc,systemd}
   30 
   31   ./configure \
   32     --prefix=/usr \
   33     --sysconfdir=/etc \
   34     --enable-etcdir=/etc/zsh \
   35     --enable-zshrc=/etc/zsh/zshrc \
   36     --enable-zlogin=/etc/zsh/zshlogin \
   37     --enable-zlogout=/etc/zsh/zshlogout \
   38     --enable-zshenv=/etc/zsh/zshenv \
   39     --enable-zprofile=/etc/zsh/zprofile \
   40     --enable-fndir=/usr/share/zsh/$version/functions \
   41     --enable-site-fndir=/usr/share/zsh/site-functions \
   42     --enable-maildir-support \
   43     --with-term-lib='ncursesw' \
   44     --with-tcsetpgrp \
   45     --enable-function-subdirs \
   46     --enable-pcre \
   47     --enable-restricted-r \
   48     --enable-cap \
   49     --enable-multibyte \
   50     --enable-zsh-secure-free
   51 
   52   make
   53   make DESTDIR=$PKG install
   54 
   55   install -m 644 $SRC/zsh-lovers.1 $PKG/usr/share/man/man1/
   56 
   57   rm $PKG/usr/share/man/man1/zshall.1
   58   cat $PKG/usr/share/man/man1/* > $PKG/usr/share/man/man1/zshall.1
   59 
   60   # These completion files break things for CRUX' pkgutils,
   61   # so remove them for now (see bug #381).
   62   rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
   63 
   64   install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
   65 }

Generated by cgit