summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuhr2016-08-12 16:37:11 +0900
committeryuhr2016-08-12 16:37:11 +0900
commiteaa00ffd366fcab333f86c05c5dc1c53bfe97fc9 (patch)
treec9d6c04d2125a26374592acea5b337202480121f
downloadaur-eaa00ffd366fcab333f86c05c5dc1c53bfe97fc9.tar.gz
initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD22
-rw-r--r--ttf-myrica.install15
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..73918d0f8da7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Fri Aug 12 07:25:31 UTC 2016
+pkgbase = ttf-myrica
+ pkgdesc = Japanese font family for developers obtained by mixing Inconsolata and Genshin Gothic
+ pkgver = 2.010.20160103
+ pkgrel = 1
+ url = http://myrica.estable.jp/
+ install = ttf-myrica.install
+ arch = any
+ license = Apache
+ license = custom:OFL
+ depends = fontconfig
+ depends = xorg-font-utils
+ source = Myrica.zip::https://github.com/tomokuni/Myrica/blob/0ea367cbd9034775454334aa6ce3b1d16796a330/product/Myrica.zip?raw=true
+ md5sums = d85ab451d7c90cec714f20ff417f145b
+
+pkgname = ttf-myrica
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..94f4729301ac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: yuhr <sdn.pate(at)gmail.com>
+
+pkgname=ttf-myrica
+pkgver=2.010.20160103
+pkgrel=1
+pkgdesc="Japanese font family for developers obtained by mixing Inconsolata and Genshin Gothic"
+url="http://myrica.estable.jp/"
+license=('Apache' 'custom:OFL')
+arch=('any')
+depends=('fontconfig' 'xorg-font-utils')
+install=$pkgname.install
+source=(Myrica.zip::https://github.com/tomokuni/Myrica/blob/0ea367cbd9034775454334aa6ce3b1d16796a330/product/Myrica.zip?raw=true)
+md5sums=('d85ab451d7c90cec714f20ff417f145b')
+
+package() {
+ cd "${srcdir}"
+ install -dm755 "${pkgdir}"/usr/share/fonts/TTF
+ install -m644 *.TTC "${pkgdir}"/usr/share/fonts/TTF/
+
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install -Dm644 LICENSE_*.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
diff --git a/ttf-myrica.install b/ttf-myrica.install
new file mode 100644
index 000000000000..44f7f11ea4c7
--- /dev/null
+++ b/ttf-myrica.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache >/dev/null -f
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}