comparison dev/mercurial/mercurial.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 337f950c30f5
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
24 PKGDEPENDS="python2 py-setuptools py-docutils" 24 PKGDEPENDS="python2 py-setuptools py-docutils"
25 25
26 : ${CC:=clang} 26 : ${CC:=clang}
27 : ${CFLAGS:=-O2} 27 : ${CFLAGS:=-O2}
28 28
29 build() 29 rm -rf $PKGNAME-$PKGVERSION
30 { 30 tar xvf $PKGNAME-$PKGVERSION.tar.gz
31 rm -rf $PKGNAME-$PKGVERSION 31 cd $PKGNAME-$PKGVERSION
32 tar xvf $PKGNAME-$PKGVERSION.tar.gz
33 cd $PKGNAME-$PKGVERSION
34 32
35 CC="$CC" \ 33 CC="$CC" \
36 CFLAGS="$CFLAGS" \ 34 CFLAGS="$CFLAGS" \
37 make PYTHON=python2 PREFIX=/. all 35 make PYTHON=python2 PREFIX=/. all
38 make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install 36 make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install
39 install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh 37 install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh
40 install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk 38 install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk
41 install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME 39 install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME
42 install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME 40 install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME
43 41
44 cd .. 42 cd ..
45 rm -rf $PKGNAME-$PKGVERSION 43 rm -rf $PKGNAME-$PKGVERSION
46 }