Advertisement
chemoelectric

Untitled

Jul 11th, 2013
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/bin/zsh
  2.  
  3. set -x
  4.  
  5. package="${1}"
  6. package_orig="${package}.ORIG"
  7. package_build="${package}.BUILD"
  8. tarball="${package}.tar.bz2"
  9. my_patch="${package}.new-smtools.patch"
  10.  
  11. remove_directories () {
  12. [[ -d "${package}" ]] && rm -rf "${package}"
  13. [[ -d "${package_orig}" ]] && rm -rf "${package_orig}"
  14. [[ -d "${package_build}" ]] && rm -rf "${package_build}"
  15. }
  16.  
  17. remove_directories
  18. tar xf "${tarball}"
  19. cp -rf "${package}" "${package_orig}"
  20. cp -rf "${package}" "${package_build}"
  21.  
  22. pushd "${package}"
  23. WANT_AUTOMAKE=1.14 autoreconf -ivf
  24. sed -i -e '/^import fontforge/s/import fontforge/import sortsmill.ffcompat as fontforge/' ./**/*.py
  25. popd
  26.  
  27. mkpatch "${package_orig}" "${package}" > "${my_patch}"
  28. bzip2 -f "${my_patch}"
  29.  
  30. pushd "${package_build}"
  31. bzip2 -d < "../${my_patch}.bz2" | patch -Np1
  32. ./configure --enable-truetype
  33. make -j9
  34. popd
  35.  
  36. remove_directories
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement