Commit 8dd11411 authored by Jakub Jirutka's avatar Jakub Jirutka

main/zsh: improve abuild

parent 4778b1e6
......@@ -7,22 +7,24 @@ pkgdesc="A very advanced and programmable command interpreter (shell)"
url="http://www.zsh.org/"
arch="all"
license="BSD"
depends=
makedepends=ncurses-dev
depends=""
makedepends="ncurses-dev"
install="zsh.post-install zsh.post-upgrade zsh.pre-deinstall"
source="http://www.zsh.org/pub/${pkgname}-${pkgver}.tar.xz
zprofile"
source="http://www.zsh.org/pub/$pkgname-$pkgver.tar.xz
zprofile"
subpackages="$pkgname-doc"
_builddir="$srcdir"/$pkgname-$pkgver
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
cd "$builddir"
default_prepare || return 1
update_config_sub || return 1
}
build() {
cd "$_builddir"
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -41,10 +43,12 @@ build() {
}
package() {
cd "$_builddir"
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 "$srcdir"/zprofile "$pkgdir"/etc/zsh/zprofile
}
md5sums="afe96fde08b70e23c1cab1ca7a68fb34 zsh-5.2.tar.xz
a5e93cd6880da04a63fc4fcaaa03987f zprofile"
sha256sums="f17916320ffaa844bbd7ce48ceeb5945fc5f3eff64b149b4229bbfbdf3795a9d zsh-5.2.tar.xz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment