comparison dev/mercurial/mercurial.sh @ 606:25cecc6dca48

vanilla: use POSIX shell and busybox tar
author David Demelier <markand@malikania.fr>
date Thu, 18 Jul 2019 07:26:43 +0200
parents bad483aace64
children a133976e0783
comparison
equal deleted inserted replaced
605:860ab66f5f71 606:25cecc6dca48
27 : ${CFLAGS:=-O2} 27 : ${CFLAGS:=-O2}
28 28
29 build() 29 build()
30 { 30 {
31 rm -rf $PKGNAME-$PKGVERSION 31 rm -rf $PKGNAME-$PKGVERSION
32 tar xvaf $PKGNAME-$PKGVERSION.tar.gz 32 tar xvf $PKGNAME-$PKGVERSION.tar.gz
33 pushd $PKGNAME-$PKGVERSION 33 cd $PKGNAME-$PKGVERSION
34 34
35 CC="$CC" \ 35 CC="$CC" \
36 CFLAGS="$CFLAGS" \ 36 CFLAGS="$CFLAGS" \
37 make PYTHON=python2 PREFIX=/. all 37 make PYTHON=python2 PREFIX=/. all
38 make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install 38 make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install
39 install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh 39 install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh
40 install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk 40 install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk
41 install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME 41 install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME
42 install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME 42 install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME
43 43
44 popd 44 cd ..
45 rm -rf $PKGNAME-$PKGVERSION 45 rm -rf $PKGNAME-$PKGVERSION
46 } 46 }