--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/02_x11/fonts_append_plamo/PlamoBuild.fonts_append_plamo-5.0 2020-11-08 14:24:10.000000000 +0900 @@ -1,19 +1,19 @@ #!/bin/sh ###################################################################### -url="" +url="ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/02_x11/fonts_append_plamo/fonts-append-plamo-5.0.tar.xz" verify= digest= branch= commitid= -pkgbase= -vers= -arch=`uname -m` -build=P1 -src=$pkgbase-$vers +pkgbase=fonts_append_plamo +vers=5.0 +arch=noarch +build=P4 +src=fonts-append-plamo-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="freefont/README TrueType/00README_UNICODE_FONTS.txt" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -65,6 +65,11 @@ make install DESTDIR=$P fi done + install -d $P/usr/share/fonts + cp -a . $P/usr/share/fonts ; chown -R root.root $P/usr/share/fonts + install -d $P/usr/share/ghostscript/fonts + ln -s ../../fonts/TrueType/ipag.ttf $P/usr/share/ghostscript/fonts + ln -s ../../fonts/TrueType/ipam.ttf $P/usr/share/ghostscript/fonts touch $W/i.et cd $W TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ @@ -72,9 +77,90 @@ compress setup_docdir convert_links - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + prune_symlink $P/usr/share/fonts/TrueType + prune_symlink $P/usr/share/ghostscript/fonts + cat <<- EOF >> $P/install/doinst.sh + #%% begin initialize $pkg + EOF + cat <<- "EOF" >> $P/install/doinst.sh + make_bold() { + [ $first -eq 0 ] && echo -n " " + gunzip -c $IN | pcf2bdf | qmkbold $1 $2 | bdftopcf | gzip > $OUT + chown root.wheel $OUT + echo -n $OUT ; first=0 + } + + echo "Making some bold fonts in /usr/share/fonts/Bitmap directory." + echo "Please wait..." ; first=1 + ( cd /usr/share/fonts/Bitmap + IN=5x10a.pcf.gz ; OUT=5x10b.pcf.gz ; make_bold + IN=shnm6x12a.pcf.gz ; OUT=shnm6x12ab.pcf.gz ; make_bold -r -L + IN=shnm7x14a.pcf.gz ; OUT=shnm7x14ab.pcf.gz ; make_bold -r -L + IN=shnm8x16a.pcf.gz ; OUT=shnm8x16ab.pcf.gz ; make_bold -r -L + IN=9x18m.pcf.gz ; OUT=9x18b.pcf.gz ; make_bold -r -L + IN=9x18gm.pcf.gz ; OUT=9x18gb.pcf.gz ; make_bold -r -L + IN=10x20gm.pcf.gz ; OUT=10x20gb.pcf.gz ; make_bold -r -L + IN=12x24.pcf.gz ; OUT=12x24b.pcf.gz ; make_bold -r -L + IN=13x26.pcf.gz ; OUT=13x26b.pcf.gz ; make_bold -r -L + echo ; first=1 + IN=5x10rk.pcf.gz ; OUT=5x10rkb.pcf.gz ; make_bold + IN=shnm6x12r.pcf.gz ; OUT=shnm6x12rb.pcf.gz ; make_bold -r -L + IN=shnm7x14r.pcf.gz ; OUT=shnm7x14rb.pcf.gz ; make_bold -r -L + IN=shnm8x16r.pcf.gz ; OUT=shnm8x16rb.pcf.gz ; make_bold -r -L + IN=9x18rkm.pcf.gz ; OUT=9x18rkb.pcf.gz ; make_bold -r -L + IN=9x18grkm.pcf.gz ; OUT=9x18grkb.pcf.gz ; make_bold -r -L + IN=10x20grkm.pcf.gz ; OUT=10x20grkb.pcf.gz ; make_bold -r -L + IN=12x24rk.pcf.gz ; OUT=12x24rkb.pcf.gz ; make_bold -r -L + IN=13x26rk.pcf.gz ; OUT=13x26rkb.pcf.gz ; make_bold -r -L + IN=min_16x32r.pcf.gz ; OUT=min_16x32rb.pcf.gz ; make_bold -r -L + echo ; first=1 + IN=knj10.pcf.gz ; OUT=knj10b.pcf.gz ; make_bold + IN=knj10min.pcf.gz ; OUT=knj10minb.pcf.gz ; make_bold + IN=shnmk12.pcf.gz ; OUT=shnmk12b.pcf.gz ; make_bold -r -L + IN=shnmk12min.pcf.gz ; OUT=shnmk12minb.pcf.gz ; make_bold -r -L + IN=shnmleftk14.pcf.gz ; OUT=shnmleftk14b.pcf.gz ; make_bold -r -L + IN=shnmleftk14min.pcf.gz ; OUT=shnmleftk14minb.pcf.gz ; make_bold -r -L + IN=shnmleftk16.pcf.gz ; OUT=shnmleftk16b.pcf.gz ; make_bold -r -L + IN=shnmleftk16min.pcf.gz ; OUT=shnmleftk16minb.pcf.gz ; make_bold -r -L + IN=k18gm.pcf.gz ; OUT=k18gb.pcf.gz ; make_bold -r -L + IN=k18m.pcf.gz ; OUT=k18b.pcf.gz ; make_bold -r -L + IN=k20gm.pcf.gz ; OUT=k20gb.pcf.gz ; make_bold -r -L + IN=jiskan24.pcf.gz ; OUT=jiskan24b.pcf.gz ; make_bold -r -L + IN=kanji26.pcf.gz ; OUT=kanji26b.pcf.gz ; make_bold -r -L + IN=min_k32.pcf.gz ; OUT=min_k32b.pcf.gz ; make_bold -r -L + echo ) + echo "done." + echo "Initializing Bitmap fonts directory..." + mkfontdir /usr/share/fonts/Bitmap + echo "Initializing freefont fonts directory..." + mkfontscale /usr/share/fonts/freefont + mkfontdir /usr/share/fonts/freefont + echo "Initializing TrueType fonts directory..." + mkfontscale /usr/share/fonts/TrueType + echo "Initializing ghostscript fonts directory..." + mkfontdir /usr/share/fonts/ghostscript + echo "done." + for i in 100dpi 75dpi TTF Type1 misc ; do + if [ $i == TTF -o $i == Type1 ] ; then + echo "making font.scale in /usr/share/fonts/X11/$i" + mkfontscale /usr/share/fonts/X11/$i + fi + echo "making font.dir in /usr/share/fonts/X11/$i" + mkfontdir /usr/share/fonts/X11/$i + done + #%% end + EOF + TZ=UTC touch -t `date -u '+%m%d0000'` $P/install/doinst.sh + tar cvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/fonts/Bitmap -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/fonts/freefont -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/fonts/TrueType -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/share/ghostscript/fonts -maxdepth 1 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar xz $pkg.tar ; touch $pkg.tar.xz ; mv $pkg.tar.xz $pkg.txz cleanup