comparison dev/mercurial/mercurial.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children 9867e578b1a9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
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 rm -rf $PKGNAME-$PKGVERSION 29 build()
30 tar xvf $PKGNAME-$PKGVERSION.tar.gz 30 {
31 cd $PKGNAME-$PKGVERSION 31 rm -rf $PKGNAME-$PKGVERSION
32 tar xvf $PKGNAME-$PKGVERSION.tar.gz
33 cd $PKGNAME-$PKGVERSION
32 34
33 CC="$CC" \ 35 CC="$CC" \
34 CFLAGS="$CFLAGS" \ 36 CFLAGS="$CFLAGS" \
35 make PYTHON=python2 PREFIX=/. all 37 make PYTHON=python2 PREFIX=/. all
36 make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install 38 make PYTHON=python2 PREFIX=/. DESTDIR=$DESTDIR install
37 install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh 39 install -Dm0755 contrib/hg-ssh $DESTDIR/bin/hg-ssh
38 install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk 40 install -Dm0755 contrib/hgk $DESTDIR/libexec/mercurial/hgk
39 install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME 41 install -Dm0644 contrib/zsh_completion $DESTDIR/share/zsh/site-functions/_$PKGNAME
40 install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME 42 install -Dm0644 contrib/bash_completion $DESTDIR/share/bash-completion/completions/$PKGNAME
41 43
42 cd .. 44 cd ..
43 rm -rf $PKGNAME-$PKGVERSION 45 rm -rf $PKGNAME-$PKGVERSION
46 }