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.

57 lines
1.7 KiB

# --- 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 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
# 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 $datadir
mkdir -p $docdir
cd $datadir
unzip -q -o -d mp_font3 `match_source_file -p mp_font3`
mv -f mp_font3/README $docdir/README-mp_font3
chown -f 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 $docdir/README-windows-1251
mv -f windows-1251/README.bg $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 $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
custmain=mplayer_fonts_main