aboutsummaryrefslogtreecommitdiffstats
path: root/main/zsh
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-09-18 00:18:40 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-09-18 00:40:09 +0200
commit8dd114113b6c4303af6f6972dad41a8ac5b69c82 (patch)
tree586456427e9cc6ebb8ca2ae51c08fc4a35b1b4f7 /main/zsh
parent4778b1e699e21ba28e259bd086a7279b90bf9c90 (diff)
downloadaports-8dd114113b6c4303af6f6972dad41a8ac5b69c82.tar.bz2
aports-8dd114113b6c4303af6f6972dad41a8ac5b69c82.tar.xz
main/zsh: improve abuild
Diffstat (limited to 'main/zsh')
-rw-r--r--main/zsh/APKBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/main/zsh/APKBUILD b/main/zsh/APKBUILD
index 1bad15b77f..6d8f49ed4a 100644
--- a/main/zsh/APKBUILD
+++ b/main/zsh/APKBUILD
@@ -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