opt/zsh/Pkgfile

50 lines
1.5 KiB
Plaintext
Raw Normal View History

2006-04-06 19:26:00 +02:00
# Description: Very powerfull shell
# URL: http://www.zsh.org/
2011-06-20 15:25:33 +02:00
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: libpcre
2006-04-06 19:26:00 +02:00
name=zsh
2019-02-22 00:59:03 +01:00
version=5.7.1
2015-12-05 19:28:51 +01:00
release=1
2020-02-21 12:39:15 +01:00
source=(http://www.zsh.org/pub/old/zsh-${version}.tar.xz _prt-get zsh-lovers.1)
2006-04-06 19:26:00 +02:00
build() {
2017-04-29 21:46:54 +02:00
cd $name-$version
2006-04-06 19:26:00 +02:00
./configure \
2011-06-20 15:25:33 +02:00
--prefix=/usr \
--enable-etcdir=/etc/zsh \
--enable-zshrc=/etc/zsh/zshrc \
--enable-zlogin=/etc/zsh/zshlogin \
2011-06-20 15:25:33 +02:00
--enable-zshenv=/etc/zsh/zshenv \
--enable-fndir=/usr/share/zsh/$version/functions \
--enable-site-fndir=/usr/share/zsh/site-functions \
--enable-maildir-support \
--enable-function-subdirs \
--enable-pcre \
--enable-restricted-r \
--enable-cap
# fix paths for kbd and usbutils
sed -i 's|/usr/share/keymaps|/usr/share/kbd/keymaps|g' Completion/Unix/Command/_loadkeys
sed -i 's|/usr/share/misc/usb.ids|/usr/share/usb.ids|g' Completion/Linux/Command/_lsusb
2006-04-06 19:26:00 +02:00
make
make DESTDIR=$PKG install
2006-04-06 19:26:00 +02:00
install -m 644 $SRC/zsh-lovers.1 $PKG/usr/share/man/man1/
rm $PKG/usr/share/man/man1/zshall.1
cat $PKG/usr/share/man/man1/* > $PKG/usr/share/man/man1/zshall.1
2011-06-20 15:25:33 +02:00
install -d $PKG/bin
ln -s /usr/bin/zsh $PKG/bin
# These completion files break things for CRUX' pkgutils,
# so remove them for now (see bug #381).
rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
2006-04-06 19:26:00 +02:00
}