build 1019 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  4. mkdir -p /var/tmp/dist
  5. mkdir -p /var/tmp/build
  6. tar -C /var/tmp/build -xf nsis-[% c('version') %].tar.bz2
  7. cd /var/tmp/build/nsis-[% c('version') %]-src
  8. tar -xf $rootdir/[% c('input_files_by_name/debian') %]
  9. rm -f debian/patches/nsis_system_zlib.patch
  10. rm -f debian/patches/parallel_build.patch
  11. patch -p1 < $rootdir/nsis-missing-unistd-include.patch
  12. for patch in $(grep '\.patch$' debian/patches/series)
  13. do
  14. [ -f debian/patches/$patch ] && patch -p1 < debian/patches/$patch
  15. done
  16. [% SET scons_args = 'APPEND_CCFLAGS="-fgnu89-inline" VERSION=' _ c("version")
  17. _ " SKIPUTILS='NSIS Menu' XGCC_W32_PREFIX=i686-w64-mingw32-"
  18. _ ' PREFIX=/var/tmp/dist/nsis' -%]
  19. scons [% scons_args %]
  20. scons [% scons_args %] install
  21. cd /var/tmp/dist
  22. [% c('tar', {
  23. tar_src => [ project ],
  24. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  25. }) %]