1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../mplayer-fonts/mplayer-fonts.conf
5 # Copyright (C) 2004 - 2017 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
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 ---
16 mplayer_fonts_main() {
17 prefix="${prefix%-fonts}"
18 datadir="$datadir/mplayer"
19 docdir="${docdir%-fonts}"
21 mkdir -p $root$datadir
25 unzip -q -o -d mp_font3 `match_source_file -p mp_font3`
26 mv -f mp_font3/README $root$docdir/README-mp_font3
27 chown -f root:root $root$docdir/README-mp_font3
29 unzip -q -o `match_source_file -p bgfont`
30 cp -f mp_font3/arpi* bgfont
32 tar $taropt `match_source_file -p mplayerfonts_win1251`
33 chown -R root:root windows-1251
34 mv -f windows-1251/README $root$docdir/README-windows-1251
35 mv -f windows-1251/README.bg $root$docdir/README.bg-windows-1251
36 for i in `ls windows-1251`; do
37 rm -rf font-$i-windows-1251
38 mv windows-1251/$i font-$i-windows-1251
39 add_flist $root$datadir/font-$i-windows-1251/*
43 tar $taropt `match_source_file -p koi8r-font`
44 chown -R root:root koi8r-font
45 cp -f mp_font3/arpi* koi8r-font
48 tar $taropt `match_source_file -p mpfont_cyr` -C mpfont_cyr
49 chown -R root:root mpfont_cyr
50 cp -f mp_font3/arpi* mpfont_cyr
56 hook_add inmake 5 mplayer_fonts_main