# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/*/mplayer-fonts/mplayer-fonts.conf # Copyright (C) 2004 - 2017 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- mplayer_fonts_main() { prefix="${prefix%-fonts}" datadir="$datadir/mplayer" docdir="${docdir%-fonts}" mkdir -p $root$datadir mkdir -p $root$docdir cd $root$datadir unzip -q -o -d mp_font3 `match_source_file -p mp_font3` mv -f mp_font3/README $root$docdir/README-mp_font3 chown -f root:root $root$docdir/README-mp_font3 unzip -q -o `match_source_file -p bgfont` cp -f mp_font3/arpi* bgfont tar $taropt `match_source_file -p mplayerfonts_win1251` chown -R root:root windows-1251 mv -f windows-1251/README $root$docdir/README-windows-1251 mv -f windows-1251/README.bg $root$docdir/README.bg-windows-1251 for i in `ls windows-1251`; do rm -rf font-$i-windows-1251 mv windows-1251/$i font-$i-windows-1251 add_flist $root$datadir/font-$i-windows-1251/* done rmdir windows-1251 tar $taropt `match_source_file -p koi8r-font` chown -R root:root koi8r-font cp -f mp_font3/arpi* koi8r-font mkdir -p mpfont_cyr tar $taropt `match_source_file -p mpfont_cyr` -C mpfont_cyr chown -R root:root mpfont_cyr cp -f mp_font3/arpi* mpfont_cyr } autoextract=0 makeopt= makeinstopt= hook_add inmake 5 mplayer_fonts_main