summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAli Molaei2022-03-09 18:53:08 +0330
committerAli Molaei2022-03-09 18:53:08 +0330
commit8b69873451ee71f1d23f40513ac9d76a1893b9e6 (patch)
treebe17bff86941e6dab3f9ca7cad1a1d06a2f67837
parent01fea78a78c2277280ee87bbaa212f9fc5f66121 (diff)
downloadaur-8b69873451ee71f1d23f40513ac9d76a1893b9e6.tar.gz
Move notice to pre install and upgrade scripts
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD17
-rw-r--r--notice.install21
3 files changed, 25 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c4e9341086df..9cadbd6424fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = vazir-fonts
pkgdesc = A beautiful Persian font based on DejaVu font.
pkgver = 32.0.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/rastikerdar/vazirmatn
+ install = notice.install
arch = any
license = OFL
depends = vazirmatn-fonts
diff --git a/PKGBUILD b/PKGBUILD
index 8e6bf4c72338..a4f12faac700 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,26 +8,13 @@
pkgname=vazir-fonts
pkgver=32.0.0
-pkgrel=2
+pkgrel=3
pkgdesc="A beautiful Persian font based on DejaVu font."
url="https://github.com/rastikerdar/vazirmatn"
arch=(any)
license=('OFL')
depends=('vazirmatn-fonts')
-
-prepare() {
- msg "###########################################################"
- msg " ############# NOTICE ############## "
- msg "###########################################################"
- msg "# This package is just a dummy package that installs #"
- msg "# vazirmatn-fonts. Please install that package directly #"
- msg "# as I intent to remove this package, for more info #"
- msg "# on why this is happening go see these links: #"
- msg "# #"
- msg "# https://rastikerdar.github.io/vazirmatn/fa/docs/HELP-fa #"
- msg "# https://github.com/rastikerdar/vazirmatn/issues/235 #"
- msg "###########################################################"
-}
+install=notice.install
package() {
:
diff --git a/notice.install b/notice.install
new file mode 100644
index 000000000000..3fc81efdd170
--- /dev/null
+++ b/notice.install
@@ -0,0 +1,21 @@
+removeal_notice() {
+ echo "###########################################################"
+ echo " ############# NOTICE ############## "
+ echo "###########################################################"
+ echo "# This package is just a dummy package that installs #"
+ echo "# vazirmatn-fonts. Please install that package directly #"
+ echo "# as I intent to remove this package, for more info #"
+ echo "# on why this is happening go see these links: #"
+ echo "# #"
+ echo "# https://rastikerdar.github.io/vazirmatn/fa/docs/HELP-fa #"
+ echo "# https://github.com/rastikerdar/vazirmatn/issues/235 #"
+ echo "###########################################################"
+}
+
+pre_install() {
+ removeal_notice
+}
+
+pre_upgrade() {
+ removeal_notice
+}