summaryrefslogtreecommitdiffstats
path: root/main/zsh/APKBUILD
blob: 4f1c9dc3f6fbb75d0df456448d6e9e5c0b44a5a1 (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
# Contributor: <kalonji@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zsh
pkgver=5.0.0
pkgrel=0
pkgdesc="A very advanced and programmable command interpreter (shell) for UNIX"
url="http://www.zsh.org/"
arch="all"
license="custom"
depends=
makedepends=ncurses-dev
install="zsh.post-install zsh.post-upgrade zsh.pre-deinstall"
source="ftp://ftp.zsh.org/pub/${pkgname}-${pkgver}.tar.gz
$install"
_builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--bindir=/bin \
		--enable-etcdir=/etc/zsh \
		--enable-zshenv=/etc/zsh/zshenv \
		--enable-zlogin=/etc/zsh/zlogin \
		--enable-zlogout=/etc/zsh/zlogout \
		--enable-zprofile=/etc/profile \
		--enable-zshrc=/etc/zsh/zshrc \
		--enable-multibyte \
		--enable-function-subdirs \
		--enable-zsh-secure-free \
		--sysconfdir=/etc \
		--with-tcsetpgrp \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="01df38e4aa34aa227462fdf2f6d4c5cd  zsh-5.0.0.tar.gz
aedff0460ef282937905223207ac702e  zsh.post-install
aedff0460ef282937905223207ac702e  zsh.post-upgrade
b48f79e2d4a29047f6152f5a9441f942  zsh.pre-deinstall"