Mercurial > vanilla
comparison Templates/build/python-hybrid.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 8cbb83c16868 |
children | 57dc83a39b13 |
comparison
equal
deleted
inserted
replaced
1215:3214f7fed454 | 1216:6710613b88b9 |
---|---|
23 PKGWWW="http://example.org" | 23 PKGWWW="http://example.org" |
24 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz" | 24 PKGDOWNLOAD="http://example.org/$PKGNAME-$PKGVERSION.tar.xz" |
25 PKGDEPENDS="python python2 py-setuptools" | 25 PKGDEPENDS="python python2 py-setuptools" |
26 # PKGOPTIONS="FOO BAR BAZ" | 26 # PKGOPTIONS="FOO BAR BAZ" |
27 | 27 |
28 build() | 28 for py in python python2; do |
29 { | 29 rm -rf $PKGNAME-$PKGVERSION |
30 for py in python python2; do | 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 $py setup.py build | 33 $py setup.py build |
36 $py setup.py install --root=$DESTDIR --prefix=/. | 34 $py setup.py install --root=$DESTDIR --prefix=/. |
37 | 35 |
38 cd .. | 36 cd .. |
39 rm -rf $PKGNAME-$PKGVERSION | 37 rm -rf $PKGNAME-$PKGVERSION |
40 done | 38 done |
41 } |