build 573 B

12345678910111213141516171819
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. mkdir -p $distdir
  5. tar xf [% c('input_files_by_name/python') %]
  6. cd Python-[% c('version') %]
  7. [% IF c("var/container/arch") == "armhf" -%]
  8. ./configure --prefix=$distdir --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
  9. [% ELSE %]
  10. ./configure --prefix=$distdir
  11. [% END -%]
  12. make -j[% c("buildconf/num_procs") %]
  13. make prefix=$distdir install
  14. cd /var/tmp/dist
  15. [% c('tar', {
  16. tar_src => 'python',
  17. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  18. }) %]