OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../mplayer-fonts/mplayer-fonts.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- T2-COPYRIGHT-NOTE-END ---
  15. mplayer_fonts_main() {
  16. prefix="${prefix%-fonts}"
  17. datadir="$datadir/mplayer"
  18. docdir="${docdir%-fonts}"
  19. mkdir -p $datadir
  20. mkdir -p $docdir
  21. cd $datadir
  22. unzip -q -o -d mp_font3 `match_source_file -p mp_font3`
  23. mv -f mp_font3/README $docdir/README-mp_font3
  24. chown -f root:root $docdir/README-mp_font3
  25. unzip -q -o `match_source_file -p bgfont`
  26. cp -f mp_font3/arpi* bgfont
  27. tar $taropt `match_source_file -p mplayerfonts_win1251`
  28. chown -R root:root windows-1251
  29. mv -f windows-1251/README $docdir/README-windows-1251
  30. mv -f windows-1251/README.bg $docdir/README.bg-windows-1251
  31. for i in `ls windows-1251` ; do
  32. rm -rf font-$i-windows-1251
  33. mv windows-1251/$i font-$i-windows-1251
  34. add_flist $datadir/font-$i-windows-1251/*
  35. done
  36. rmdir windows-1251
  37. tar $taropt `match_source_file -p koi8r-font`
  38. chown -R root:root koi8r-font
  39. cp -f mp_font3/arpi* koi8r-font
  40. mkdir -p mpfont_cyr
  41. tar $taropt `match_source_file -p mpfont_cyr` -C mpfont_cyr
  42. chown -R root:root mpfont_cyr
  43. cp -f mp_font3/arpi* mpfont_cyr
  44. }
  45. autoextract=0
  46. custmain=mplayer_fonts_main