iglunix/pkgs/zsh/build.sh

39 lines
627 B
Bash

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() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl
make
}
package() {
cd $pkgname-$pkgver
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() {
cd $pkgname-$pkgver
cat LICENCE
# cat COPYING
}