2021-01-31 11:09:14 +00:00
|
|
|
pkgname=zsh
|
|
|
|
pkgver=5.8
|
2021-05-11 20:21:29 +00:00
|
|
|
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
|
2021-05-11 20:21:29 +00:00
|
|
|
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
|
|
|
|
2021-05-11 20:21:29 +00:00
|
|
|
make
|
2021-01-31 11:09:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-05-11 20:21:29 +00:00
|
|
|
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
|
|
|
|
}
|