[arch-commits] Commit in otf-ipafont/repos (3 files)
Felix Yan
fyan at nymeria.archlinux.org
Wed Jul 10 12:56:28 UTC 2013
Date: Wednesday, July 10, 2013 @ 14:56:28
Author: fyan
Revision: 93803
archrelease: copy trunk to community-any
Added:
otf-ipafont/repos/community-any/
otf-ipafont/repos/community-any/PKGBUILD
(from rev 93802, otf-ipafont/trunk/PKGBUILD)
otf-ipafont/repos/community-any/otf.install
(from rev 93802, otf-ipafont/trunk/otf.install)
-------------+
PKGBUILD | 28 ++++++++++++++++++++++++++++
otf.install | 15 +++++++++++++++
2 files changed, 43 insertions(+)
Copied: otf-ipafont/repos/community-any/PKGBUILD (from rev 93802, otf-ipafont/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2013-07-10 12:56:28 UTC (rev 93803)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
+
+pkgname=otf-ipafont
+pkgver=003.03
+_pkgver=${pkgver/./}
+pkgrel=3
+pkgdesc="Japanese outline fonts by Information-technology Promotion Agency, Japan (IPA)"
+arch=('any')
+url="http://ipafont.ipa.go.jp/"
+license=('custom')
+depends=('fontconfig' 'xorg-font-utils')
+install=otf.install
+source=(http://info.openlab.ipa.go.jp/ipafont/fontdata/IPAfont${_pkgver}.zip)
+md5sums=('39a828acf27790adbe4944dfb4d94bb1')
+
+package() {
+ cd "${srcdir}/IPAfont${_pkgver}"
+
+ install -d "${pkgdir}/usr/share/fonts/OTF"
+ install -m644 *.ttf "${pkgdir}/usr/share/fonts/OTF/"
+
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 IPA_Font_License_Agreement_v1.0.txt \
+ Readme_IPAfont${_pkgver}.txt \
+ "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+
Copied: otf-ipafont/repos/community-any/otf.install (from rev 93802, otf-ipafont/trunk/otf.install)
===================================================================
--- community-any/otf.install (rev 0)
+++ community-any/otf.install 2013-07-10 12:56:28 UTC (rev 93803)
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -f >/dev/null
+ mkfontscale /usr/share/fonts/OTF
+ mkfontdir /usr/share/fonts/OTF
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
More information about the arch-commits
mailing list