1 # Maintainer: ponsfoot <cabezon dot hashimoto at gmail dot com>
6 pkgdesc="M+ sans serif fonts with different weights"
8 url="http://mplus-fonts.sourceforge.jp/"
10 depends=('fontconfig' 'xorg-font-utils')
11 makedepends=('fontforge' 'perl' 'cvs')
12 provides=('ttf-mplus')
13 conflicts=('ttf-mplus')
16 _cvsroot=":pserver:anonymous:@cvs.sourceforge.jp:/cvsroot/mplus-fonts"
17 _cvsmod="mplus_outline_fonts"
22 msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
23 if [ -d ${_cvsmod}/CVS ]; then
27 cvs -z3 -d $_cvsroot co -f $_cvsmod
29 msg "CVS checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "${srcdir}/${_cvsmod}-build"
33 cp -r "${srcdir}/${_cvsmod}" "${srcdir}/${_cvsmod}-build"
34 cd "${srcdir}/${_cvsmod}-build"
36 sed -i -e "s|/usr/local/|/usr/|g" scripts/*.p[el]
37 # Get make -j option from $MAKEFLAGS to pass it to split-svg.pl
38 _concurrency=`sed -n -e "s/.*--jobs=\([0-9]\+\).*/\1/p" -e "s/.*-j *\([0-9]\+\).*/\1/p" <<< "$MAKEFLAGS"`
40 MPLUS_FULLSET=yes make SPLIT_CONCURRENCY=${_concurrency:-1}
44 cd "${srcdir}/${_cvsmod}-build"
46 install -d ${pkgdir}/usr/share/fonts/TTF
47 install -m644 work.d/targets/mplus-?[^k]*/*/*.ttf "${pkgdir}/usr/share/fonts/TTF/"
48 # mplus-[12]k are dummy fonts to build Kanji characters in each fonts.
50 install -D -m644 release/LICENSE_E "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE_E"