diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 26 | ||||
-rw-r--r-- | ttf.install | 15 |
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9791cab24b3f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ttf-mplus + pkgdesc = M+ Japanese outline fonts + pkgver = TESTFLIGHT_059 + pkgrel = 1 + url = http://mplus-fonts.sourceforge.jp/ + install = ttf.install + arch = any + license = custom + depends = fontconfig + depends = xorg-font-utils + source = http://jaist.dl.sourceforge.jp/mplus-fonts/62344/mplus-TESTFLIGHT-059.tar.xz + md5sums = 2e154630ce38cc48ea3e290c5f68c2d7 + sha256sums = 7862e113e04986646117267c4baee30aea163d43a382c14693f15287f16bbf25 + +pkgname = ttf-mplus + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..26fc503c1ff7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: noonov <noonov@gmail.com> + +pkgname=ttf-mplus +pkgver=TESTFLIGHT_059 +_pkgver=${pkgver/_/-} +pkgrel=1 +pkgdesc="M+ Japanese outline fonts" +arch=('any') +url="http://mplus-fonts.sourceforge.jp/" +license=('custom') +depends=('fontconfig' 'xorg-font-utils') +install=ttf.install +_mirror="jaist" # keihanna, jaist, iij, osdn +source=(http://${_mirror}.dl.sourceforge.jp/mplus-fonts/62344/mplus-${_pkgver}.tar.xz) +md5sums=('2e154630ce38cc48ea3e290c5f68c2d7') +sha256sums=('7862e113e04986646117267c4baee30aea163d43a382c14693f15287f16bbf25') + +package() { + cd ${srcdir}/mplus-${_pkgver} + + install -d ${pkgdir}/usr/share/fonts/TTF + install -m644 *.ttf ${pkgdir}/usr/share/fonts/TTF/ + + install -D -m644 LICENSE_E \ + ${pkgdir}/usr/share/licenses/${pkgname}/COPYING +} diff --git a/ttf.install b/ttf.install new file mode 100644 index 000000000000..16db3c130c72 --- /dev/null +++ b/ttf.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f -s >/dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |