iglunix/extra/zsh/build.sh
2021-08-03 22:17:36 +00:00

38 lines
591 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=$TRIPLE \
--host=$TRIPLE
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
}