--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900
+++ plamo/02_x11/TTfont.txz/fonts_migmix/PlamoBuild.fonts_migmix-20121030 2019-08-16 14:47:39.000000000 +0900
@@ -1,19 +1,23 @@
#!/bin/sh
######################################################################
-url=""
+url="http://jaist.dl.sourceforge.jp/mix-mplus-ipa/57239/migmix-1p-20121030.zip
+ http://jaist.dl.sourceforge.jp/mix-mplus-ipa/57239/migmix-2p-20121030.zip
+ http://jaist.dl.sourceforge.jp/mix-mplus-ipa/57239/migmix-1m-20121030.zip
+ http://jaist.dl.sourceforge.jp/mix-mplus-ipa/57239/migmix-2m-20121030.zip"
verify=
digest=
branch=
commitid=
-pkgbase=
-vers=
-arch=`uname -m`
-build=P1
-src=$pkgbase-$vers
+pkgbase=fonts_migmix
+vers=20121030
+arch=noarch
+build=P3
+src=migmix-1p-$vers
patchfiles=""
OPT_CONFIG=""
-DOCS="README"
+DOCS="migmix-README.txt ipag00303/IPA_Font_License_Agreement_v1.0.txt
+ ipag00303/Readme_ipag00303.txt"
template=20180815
tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin
######################################################################
@@ -65,6 +69,75 @@
make install DESTDIR=$P
fi
done
+ install -d $P/usr/share/fonts/TrueType
+ for i in {1,2}p {1,2}m ; do
+ install -m 644 $W/migmix-$i-$vers/migmix-$i-{regular,bold}.ttf \
+ $P/usr/share/fonts/TrueType
+ done
+ install -d $P/usr/share/fontconfig/conf.avail
+ cat <<- "EOF" > $P/usr/share/fontconfig/conf.avail/20-unhint-migmix.conf
+
+
+
+
+
+ MigMix 1P
+
+
+ false
+
+
+
+
+ MigMix 2P
+
+
+ false
+
+
+
+
+ MigMix 1M
+
+
+ false
+
+
+
+
+ MigMix 2M
+
+
+ false
+
+
+
+ EOF
+ cat <<- "EOF" > $P/usr/share/fontconfig/conf.avail/62-fonts-migmix.conf
+
+
+
+
+ sans-serif
+
+ MigMix 1P
+ MigMix 2P
+ MigMix 1M
+ MigMix 2M
+
+
+
+ monospace
+
+ MigMix 1M
+ MigMix 2M
+
+
+
+ EOF
+ install -d $P/etc/fonts/conf.d
+ ln -s /usr/share/fontconfig/conf.avail/20-unhint-migmix.conf $P/etc/fonts/conf.d
+ ln -s /usr/share/fontconfig/conf.avail/62-fonts-migmix.conf $P/etc/fonts/conf.d
touch $W/i.et
cd $W
TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \
@@ -72,9 +145,21 @@
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/etc/fonts/conf.d
+ cat <<- EOF >> $P/install/doinst.sh
+ #%% begin initialize $pkg
+ rm /usr/share/fonts/TrueType/fonts.scale
+ mkfontscale /usr/share/fonts/TrueType
+ fc-cache /usr/share/fonts/TrueType
+ #%% 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/TrueType | tail -n+2`
+ tar rvpf $pkg.tar -C $P \
+ `cd $P ; find usr/share/fontconfig/conf.avail | tail -n+2`
+ tar rvpf $pkg.tar -C $P `cd $P ; find etc/fonts/conf.d | 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