diff options
author | Ali Molaei | 2022-03-09 18:53:08 +0330 |
---|---|---|
committer | Ali Molaei | 2022-03-09 18:53:08 +0330 |
commit | 8b69873451ee71f1d23f40513ac9d76a1893b9e6 (patch) | |
tree | be17bff86941e6dab3f9ca7cad1a1d06a2f67837 | |
parent | 01fea78a78c2277280ee87bbaa212f9fc5f66121 (diff) | |
download | aur-8b69873451ee71f1d23f40513ac9d76a1893b9e6.tar.gz |
Move notice to pre install and upgrade scripts
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | notice.install | 21 |
3 files changed, 25 insertions, 16 deletions
@@ -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 @@ -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 +} |