summaryrefslogtreecommitdiffstats
path: root/zsh/Pkgfile
blob: cb65528e31e1c7cfc90160d3a8082f2cbc764670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
description="Very powerfull shell, the Z SHell."
longdesc="Zsh is a shell designed for interactive use, although it is also a 
powerful scripting language. Many of the useful features of bash, ksh, 
and tcsh were incorporated into zsh; many original features were added."
packager="Tilman Sauerbeck <tilman AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.zsh.org"
depends=(libpcre)

name=zsh
version=4.3.11
release=2
license=zlib
lastver="wcat http://www.zsh.org/pub/ | grep zsh | grep \\\.tar\\\.bz2 | sed 's/.*zsh-//;s/\.tar\.bz2.*//' | tail -n 1"
source=(
	http://www.zsh.org/pub/$name-$version.tar.bz2
	zsh-lovers.1
)

build () { 
	cd $name-$version;
	./configure \
		${CBUILD:+--build=${CBUILD}} \
		${CHOST:+--host=${CHOST}} \
		--prefix=$prefix \
		--bindir=${bindir/$prefix} \
		--libdir=$libdir \
		--mandir=$mandir \
		--enable-etcdir=$sysconfdir/zsh \
		--enable-zshrc=$sysconfdir/zshrc \
		--enable-zshlogin=$sysconfdir/zsh/zshlogin \
		--enable-zshenv=$sysconfdir/zsh/zshenv \
		--enable-fndir=$sharedir/zsh/$version/functions \
		--enable-site-fndir=$sharedir/zsh/site-functions \
		--enable-zsh-mem \
		--enable-maildir-support \
		--enable-function-subdirs \
		--enable-pcre \
		--enable-restricted-r \
		--enable-lfs \
		--enable-cap \
		--with-curses-terminfo;
	make;
	make DESTDIR=$PKG install;
	install -m 644 $SRC/zsh-lovers.1 $PKG$mandir/man1/;
	rm $PKG$sharedir/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
}

check () {
	cd $name-$version
	make check
}