aboutsummaryrefslogtreecommitdiffstats
path: root/main/zsh/APKBUILD
blob: 6b1de7e143266744baaff46cdf7d8078e62d528e (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
54
55
56
57
58
# Contributor: <kalonji@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zsh
pkgver=5.0.7
pkgrel=0
pkgdesc="A very advanced and programmable command interpreter (shell)"
url="http://www.zsh.org/"
arch="all"
license="BSD"
depends=
makedepends=ncurses-dev
install="zsh.post-install zsh.post-upgrade zsh.pre-deinstall"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
		zprofile"
subpackages="$pkgname-doc"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--bindir=/bin \
		--enable-etcdir=/etc/zsh \
		--enable-zshenv=/etc/zsh/zshenv \
		--enable-zlogin=/etc/zsh/zlogin \
		--enable-zlogout=/etc/zsh/zlogout \
		--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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 "$srcdir"/zprofile "$pkgdir"/etc/zprofile
}

md5sums="1cd396ce17952de50b8a89980d617f0a  zsh-5.0.7.tar.bz2
a5e93cd6880da04a63fc4fcaaa03987f  zprofile"
sha256sums="544e27de81740286b916d1d77c9f48ad7c26ad7943ed96d278abee67cf6704b3  zsh-5.0.7.tar.bz2
e3c3625d966c8277274798f26241857df5fc520e18674deba6cc356f6b022d63  zprofile"
sha512sums="e309863b41c9f92996fb9301d96d1aa43270ef8a04626c946703675b16a0a2ac9fddc959184cd8c639bd061fc2dd21902b21515550f639faacccdabd59e256e5  zsh-5.0.7.tar.bz2
59182b99447872ded8adf0d890e9359ee47fce0b7acb2808f4308f945885fbf6d977a0917bbb5c0f21454caf3ba06ab092127732da4f84292d6ab0989a0110fe  zprofile"