makedeb
Good looking Japanese TrueType font by mixing M+ and IPA.
Click here to go back to the commit logs for ttf-migu.
Hash: acad76f4ee483e4b4289ab7b0eadf2690550d87a
Message: install script update
diff --git a/.SRCINFO b/.SRCINFO
index f872c74..9df8335 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,6 @@ pkgbase = ttf-migu
pkgver = 20200307
pkgrel = 1
url = http://mix-mplus-ipa.osdn.jp/migu/
- install = ttf-migu.install
arch = any
license = custom
depends = fontconfig
diff --git a/PKGBUILD b/PKGBUILD
index 62251dc..9cbe37c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,8 @@ license=('custom')
depends=('fontconfig')
provides=('ttf-migu')
conflicts=('ttf-migu')
-install="ttf-migu.install"
+postinst="ttf-migu.postinst"
+postrm="ttf-migu.postrm"
# replaces=('ttf-migu')
_mirror="osdn"
source=("https://${_mirror}.net/projects/mix-mplus-ipa/downloads/${_release}/migu-1c-${pkgver}.zip"
diff --git a/ttf-migu.install b/ttf-migu.install
deleted file mode 100644
index 14f8058..0000000
--- a/ttf-migu.install
+++ /dev/null
@@ -1,24 +0,0 @@
-post_install() {
- echo -n "Updating font cache... "
- fc-cache -f > /dev/null
- mkfontscale /usr/share/fonts/TTF
- mkfontdir /usr/share/fonts/TTF
- echo "done."
-}
-
-post_upgrade() {
- echo -n "Updating font cache... "
- fc-cache -f > /dev/null
- mkfontscale /usr/share/fonts/TTF
- mkfontdir /usr/share/fonts/TTF
- echo "done."
-}
-
-post_remove() {
- post_install $1
- echo -n "Updating font cache... "
- fc-cache -f > /dev/null
- mkfontscale /usr/share/fonts/TTF
- mkfontdir /usr/share/fonts/TTF
- echo "done."
-}
diff --git a/ttf-migu.postinst b/ttf-migu.postinst
new file mode 100644
index 0000000..ccef389
--- /dev/null
+++ b/ttf-migu.postinst
@@ -0,0 +1,6 @@
+#!/bin/bash
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."
diff --git a/ttf-migu.postrm b/ttf-migu.postrm
new file mode 100644
index 0000000..ccef389
--- /dev/null
+++ b/ttf-migu.postrm
@@ -0,0 +1,6 @@
+#!/bin/bash
+ echo -n "Updating font cache... "
+ fc-cache -f > /dev/null
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done."