iglunix/extra/zsh/build.sh

39 lines
591 B
Bash
Raw Normal View History

2021-01-31 11:09:14 +00:00
pkgname=zsh
pkgver=5.8
ext=doc
2021-01-31 11:09:14 +00:00
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 .
2021-01-31 11:09:14 +00:00
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
2021-07-31 11:40:14 +00:00
--build=$TRIPLE \
--host=$TRIPLE
2021-01-31 11:09:14 +00:00
make
2021-01-31 11:09:14 +00:00
}
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
2021-01-31 11:09:14 +00:00
}
license() {
cd $pkgname-$pkgver
cat LICENCE
# cat COPYING
}