add firacode nerdfont package
This commit is contained in:
parent
9c0af5bc25
commit
13bd61d121
|
@ -3,6 +3,7 @@ matrix:
|
|||
- brave-bin
|
||||
- tidal-hifi-bin
|
||||
- ferdium-bin
|
||||
- font-firacode-nf-ttf
|
||||
|
||||
when:
|
||||
- event: push
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Template file for 'font-firacode-nf-ttf'
|
||||
pkgname=font-firacode-nf-ttf
|
||||
version=3.1.1
|
||||
revision=1
|
||||
homepage="https://nerdfonts.com/"
|
||||
license="MIT"
|
||||
depends="font-util"
|
||||
short_desc="NerdFont patched Fira Code font"
|
||||
maintainer="luca <luca@snaile.de>"
|
||||
distfiles="https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/FiraCode.tar.xz"
|
||||
conflicts="nerd-fonts-ttf"
|
||||
|
||||
pre_fetch() {
|
||||
if ! cd "$XBPS_SRCDISTDIR"; then
|
||||
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
url="${distfiles}"
|
||||
distfile="$(basename "$url")"
|
||||
|
||||
flock "${distfile}.part" $fetch_cmd "$url"
|
||||
flock -n "${distfile}.part" rm -f "${distfile}.part"
|
||||
|
||||
checksum=$(${XBPS_DIGEST_CMD} "$distfile")
|
||||
|
||||
mkdir -p "$XBPS_SRCDISTDIR/by_sha256"
|
||||
mv "$distfile" "$XBPS_SRCDISTDIR/by_sha256/${checksum}_${distfile}"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vmkdir usr/share/fonts/NerdFonts/ttf/symbols
|
||||
vcopy "*.ttf" usr/share/fonts/NerdFonts/ttf/symbols
|
||||
}
|
Loading…
Reference in New Issue