summaryrefslogtreecommitdiff
path: root/repo/zsh/zsh.xibuild
blob: 76f93b521fce5eaa12bc1ecea0874e872083817c (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
#!/bin/sh

NAME="zsh"
DESC="Very advanced and programmable command interpreter (shell)"

MAKEDEPS="make "
DEPS="sbase libcap musl ncurses "

PKG_VER=5.8.1
SOURCE="https://download.sourceforge.net/project/zsh/zsh/$PKG_VER/zsh-$PKG_VER.tar.xz"

prepare () {
    cd "$BUILD_ROOT/Completion"
	rm -Rf AIX BSD Cygwin Darwin Debian Mandriva Redhat Solaris openSUSE
}

build () {
    cd $BUILD_ROOT
    ./configure \
        --prefix=/usr \
		--enable-etcdir=/etc/zsh \
		--enable-pcre \
		--enable-cap \
		--enable-multibyte \
		--enable-function-subdirs \
		--enable-zsh-secure-free \
		--sysconfdir=/etc \
		--with-tcsetpgrp \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}