makedeb
Iconic bitmap font based on stlarch with additional glyphs
Click here to go back to the commit logs for siji-git.
Hash: 302002cd011e8ea8e3bafe4f033311323453cbb5
Message: install script update
diff --git a/.SRCINFO b/.SRCINFO
index c4a75a9..7498664 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,6 @@ pkgbase = siji-git
pkgver = 23c691f202019.02.18
pkgrel = 1
url = https://github.com/stark/siji
- install = siji-git.install
arch = any
license = GPLv2
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index e1c70ef..4f10a5a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,8 @@ makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/stark/siji")
-install=$pkgname.install
+postinst="${pkgname}.postinst"
+postrm="${pkgname}.postrm"
md5sums=('SKIP')
pkgver() {
diff --git a/siji-git.install b/siji-git.install
deleted file mode 100644
index 932856b..0000000
--- a/siji-git.install
+++ /dev/null
@@ -1,29 +0,0 @@
-post_install() {
- echo -n "Updating font cache."
- mkfontscale /usr/share/fonts/misc
- mkfontdir /usr/share/fonts/misc
- xset +fp /usr/share/fonts/misc
- xset fp rehash
- fc-cache -f
- echo "Finished updating font cache."
-}
-
-post_upgrade() {
- echo -n "Updating font cache."
- mkfontscale /usr/share/fonts/misc
- mkfontdir /usr/share/fonts/misc
- xset +fp /usr/share/fonts/misc
- xset fp rehash
- fc-cache -f
- echo "Finished updating font cache."
-}
-
-post_remove() {
- echo -n "Updating font cache."
- mkfontscale /usr/share/fonts/misc
- mkfontdir /usr/share/fonts/misc
- xset +fp /usr/share/fonts/misc
- xset fp rehash
- fc-cache -f
- echo "Finished updating font cache."
-}
diff --git a/siji-git.postinst b/siji-git.postinst
new file mode 100644
index 0000000..ccef389
--- /dev/null
+++ b/siji-git.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/siji-git.postrm b/siji-git.postrm
new file mode 100644
index 0000000..ccef389
--- /dev/null
+++ b/siji-git.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."