mirror of
https://github.com/luzifer-aur/nerd-fonts-dejavu-complete.git
synced 2024-11-09 22:30:04 +00:00
Remove postinstall script and dependencies
as those tasks are now executed through post-transaction hooks Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
7509215172
commit
5246ab6f0a
3 changed files with 2 additions and 35 deletions
5
.SRCINFO
5
.SRCINFO
|
@ -1,13 +1,10 @@
|
||||||
pkgbase = nerd-fonts-dejavu-complete
|
pkgbase = nerd-fonts-dejavu-complete
|
||||||
pkgdesc = All variants of Nerd-Font-patched DejaVu Sans Mono
|
pkgdesc = All variants of Nerd-Font-patched DejaVu Sans Mono
|
||||||
pkgver = 2.1.0
|
pkgver = 2.1.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/ryanoasis/nerd-fonts
|
url = https://github.com/ryanoasis/nerd-fonts
|
||||||
install = nerd-fonts-dejavu-complete.install
|
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
depends = fontconfig
|
|
||||||
depends = xorg-font-utils
|
|
||||||
provides = ttf-font
|
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.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
|
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
|
||||||
|
|
4
PKGBUILD
4
PKGBUILD
|
@ -3,14 +3,12 @@
|
||||||
|
|
||||||
pkgname=nerd-fonts-dejavu-complete
|
pkgname=nerd-fonts-dejavu-complete
|
||||||
pkgver=2.1.0
|
pkgver=2.1.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="All variants of Nerd-Font-patched DejaVu Sans Mono"
|
pkgdesc="All variants of Nerd-Font-patched DejaVu Sans Mono"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/ryanoasis/nerd-fonts"
|
url="https://github.com/ryanoasis/nerd-fonts"
|
||||||
raw_url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${pkgver}/patched-fonts/DejaVuSansMono"
|
raw_url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/v${pkgver}/patched-fonts/DejaVuSansMono"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('fontconfig' 'xorg-font-utils')
|
|
||||||
install="${pkgname}.install"
|
|
||||||
provides=(ttf-font)
|
provides=(ttf-font)
|
||||||
source=(
|
source=(
|
||||||
"DejaVu-Sans-Mono-Bold-Nerd-Font-Complete.ttf::${raw_url}/Bold/complete/DejaVu%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete.ttf"
|
"DejaVu-Sans-Mono-Bold-Nerd-Font-Complete.ttf::${raw_url}/Bold/complete/DejaVu%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete.ttf"
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
msg() {
|
|
||||||
|
|
||||||
echo -en "[1;34m::[0;1m ${@}[0m"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue