From 5eb1ab99c6a87e82459b2dee0aa3a3f32c15e4c1 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Tue, 11 May 2021 21:21:29 +0100 Subject: [PATCH] zsh: Use make instead of gmake and split package --- pkgs/zsh/build.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/zsh/build.sh b/pkgs/zsh/build.sh index 7db9c1c..0bff3f0 100644 --- a/pkgs/zsh/build.sh +++ b/pkgs/zsh/build.sh @@ -1,9 +1,11 @@ pkgname=zsh pkgver=5.8 +ext=doc fetch() { curl "https://www.zsh.org/pub/zsh-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz tar -xf $pkgname-$pkgver.tar.xz + cp ../zprofile.zsh . } build() { @@ -13,12 +15,20 @@ build() { --build=x86_64-unknown-linux-musl \ --host=x86_64-unknown-linux-musl - gmake + make } package() { cd $pkgname-$pkgver - gmake install DESTDIR=$pkgdir + make install DESTDIR=$pkgdir + install -d /etc + install -Dm644 ../zprofile.zsh $pkgdir/etc/zprofile + rm -rf $pkgdir/usr/share/man +} + +package_doc() { + cd $pkgname-$pkgver + make install.man DESTDIR=$pkgdir } license() {