makedeb


ttf-weather-icons-bin 2.0.12-1


Icon font with 222 weather themed icons

Click here to go back to the commit logs for ttf-weather-icons-bin.

Commit:


Hash: ffe7b99e59fa0471f7a1ef7b3fc879da0b74a519

Message: install script update

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 3782aee..0116feb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,6 @@ pkgbase = ttf-weather-icons-bin
 	pkgver = 2.0.12
 	pkgrel = 1
 	url = https://erikflowers.github.io/weather-icons/
-	install = ttf-weather-icons-bin.install
 	arch = any
 	license = custom:"OFL"
 	license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 6894a0a..438936a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,8 @@ license=('custom:"OFL"' 'MIT')
 arch=('any')
 conflicts=("weather-icons")
 provides=("weather-icons")
-install="${pkgname}.install"
+postinst="${pkgname}.postinst"
+postrm="${pkgname}.postrm"
 # replaces=("weather-icons")
 source=("ttf-weather-icons-$pkgver.tar.gz::https://github.com/erikflowers/weather-icons/archive/refs/tags/$pkgver.tar.gz")
 sha512sums=('6b5f155233077d281f3837f59b82d37e5f6cc08eff47be1b8313a84235c1e64c12aa0bebc68569e525334cc8e1cca0b2860a9de2fee7583c38f2b284f6fd7782')
diff --git a/ttf-weather-icons-bin.install b/ttf-weather-icons-bin.install
deleted file mode 100644
index f386cfa..0000000
--- a/ttf-weather-icons-bin.install
+++ /dev/null
@@ -1,23 +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() {
-  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-weather-icons-bin.postinst b/ttf-weather-icons-bin.postinst
new file mode 100644
index 0000000..ccef389
--- /dev/null
+++ b/ttf-weather-icons-bin.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-weather-icons-bin.postrm b/ttf-weather-icons-bin.postrm
new file mode 100644
index 0000000..ccef389
--- /dev/null
+++ b/ttf-weather-icons-bin.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."