summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornoonov2015-06-08 20:15:13 +0900
committernoonov2015-06-08 20:15:13 +0900
commit6fbe924ce4db8905a338a84620af932f8ad551e9 (patch)
tree7b2a7c2e862e7f76e8e2fe32abad2b25bcd4707c
downloadaur-6fbe924ce4db8905a338a84620af932f8ad551e9.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD26
-rw-r--r--ttf.install15
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9791cab24b3
--- /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 00000000000..26fc503c1ff
--- /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 00000000000..16db3c130c7
--- /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
+}