add firacode nerdfont package
ci/woodpecker/push/build/4 Pipeline was successful Details
ci/woodpecker/cron/renovate Pipeline was successful Details

This commit is contained in:
Luca Bilke 2024-01-15 16:14:45 +01:00
parent 9c0af5bc25
commit 13bd61d121
2 changed files with 35 additions and 0 deletions

View File

@ -3,6 +3,7 @@ matrix:
- brave-bin
- tidal-hifi-bin
- ferdium-bin
- font-firacode-nf-ttf
when:
- event: push

View File

@ -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
}