zsh: Use make instead of gmake and split package
This commit is contained in:
parent
2d537e8494
commit
5eb1ab99c6
1 changed files with 12 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue