zsh: Use make instead of gmake and split package

This commit is contained in:
Ella-0 2021-05-11 21:21:29 +01:00
parent 2d537e8494
commit 5eb1ab99c6

View file

@ -1,9 +1,11 @@
pkgname=zsh pkgname=zsh
pkgver=5.8 pkgver=5.8
ext=doc
fetch() { fetch() {
curl "https://www.zsh.org/pub/zsh-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz curl "https://www.zsh.org/pub/zsh-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz tar -xf $pkgname-$pkgver.tar.xz
cp ../zprofile.zsh .
} }
build() { build() {
@ -13,12 +15,20 @@ build() {
--build=x86_64-unknown-linux-musl \ --build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl --host=x86_64-unknown-linux-musl
gmake make
} }
package() { package() {
cd $pkgname-$pkgver 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() { license() {