From 5246ab6f0a6f477543a27cc8e4a23ca3e0f4c036 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 30 Jun 2020 23:55:45 +0200 Subject: [PATCH] Remove postinstall script and dependencies as those tasks are now executed through post-transaction hooks Signed-off-by: Knut Ahlers --- .SRCINFO | 5 +---- PKGBUILD | 4 +--- nerd-fonts-dejavu-complete.install | 28 ---------------------------- 3 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 nerd-fonts-dejavu-complete.install diff --git a/.SRCINFO b/.SRCINFO index b808a5d..95fa59a 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,10 @@ pkgbase = nerd-fonts-dejavu-complete pkgdesc = All variants of Nerd-Font-patched DejaVu Sans Mono pkgver = 2.1.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/ryanoasis/nerd-fonts - install = nerd-fonts-dejavu-complete.install arch = any license = MIT - depends = fontconfig - depends = xorg-font-utils provides = ttf-font source = DejaVu-Sans-Mono-Bold-Nerd-Font-Complete.ttf::https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v2.1.0/patched-fonts/DejaVuSansMono/Bold/complete/DejaVu%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete.ttf source = DejaVu-Sans-Mono-Bold-Nerd-Font-Complete-Mono.ttf::https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v2.1.0/patched-fonts/DejaVuSansMono/Bold/complete/DejaVu%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete%20Mono.ttf diff --git a/PKGBUILD b/PKGBUILD index 641aa41..f62c17a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,14 +3,12 @@ pkgname=nerd-fonts-dejavu-complete pkgver=2.1.0 -pkgrel=1 +pkgrel=2 pkgdesc="All variants of Nerd-Font-patched DejaVu Sans Mono" arch=('any') url="https://github.com/ryanoasis/nerd-fonts" raw_url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${pkgver}/patched-fonts/DejaVuSansMono" license=('MIT') -depends=('fontconfig' 'xorg-font-utils') -install="${pkgname}.install" provides=(ttf-font) source=( "DejaVu-Sans-Mono-Bold-Nerd-Font-Complete.ttf::${raw_url}/Bold/complete/DejaVu%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete.ttf" diff --git a/nerd-fonts-dejavu-complete.install b/nerd-fonts-dejavu-complete.install deleted file mode 100644 index e352fc4..0000000 --- a/nerd-fonts-dejavu-complete.install +++ /dev/null @@ -1,28 +0,0 @@ -msg() { - - echo -en ":: ${@}" - -} - -post_install() { - - msg 'Updating font cache...' - fc-cache -s > /dev/null 2>&1 - mkfontscale /usr/share/fonts/TTF > /dev/null 2>&1 - mkfontdir /usr/share/fonts/TTF > /dev/null 2>&1 - echo ' done!' - -} - -post_upgrade() { - - post_install - -} - -post_remove() { - - post_install - -} -