build 471 B

1234567891011121314151617
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=$(pwd)/dist
  4. mkdir -p $distdir/[% project %]
  5. tar xf [% project %]-[% c('version') %].tar.gz
  6. cd [% project %]-[% c('version') %]
  7. patch -p1 < ../libdmg.patch
  8. cmake -DCMAKE_INSTALL_PREFIX:PATH=$distdir/[% project %] CMakeLists.txt
  9. cd dmg
  10. make -j[% c("buildconf/num_procs") %]
  11. make install
  12. cd $distdir
  13. [% c('tar', {
  14. tar_src => [ project ],
  15. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  16. }) %]