nerd-fonts-fantasque-sans-mono/PKGBUILD

49 lines
3.2 KiB
Bash
Raw Normal View History

2022-05-22 04:10:37 +09:00
# Maintainer: Plague-doctor <plague at privacyrequired dot com>
# Maintainer: Yiyang Kang <kkyy%40kkyy.me>
2018-10-22 16:54:15 +09:00
pkgname=ttf-fantasque-sans-mono-nerd
epoch=2
2022-09-20 22:45:55 +09:00
pkgver=2.2.2
pkgrel=1
2018-10-22 16:54:15 +09:00
pkgdesc="Patched font FantasqueSansMono from the nerd-fonts library"
arch=("any")
url="https://github.com/ryanoasis/nerd-fonts"
license=('MIT')
depends=('fontconfig')
provides=('ttf-font-nerd')
2018-10-22 16:54:15 +09:00
conflicts=('nerd-fonts-git' 'nerd-fonts-complete')
2022-09-20 22:45:55 +09:00
_commit=d3e23fcf2cf9dc8737cbe62c82d03ff99a1ec6af
2022-05-22 04:10:37 +09:00
source=(
2022-05-27 03:00:43 +09:00
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Regular%20Nerd%20Font%20Complete.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Regular%20Nerd%20Font%20Complete%20Mono.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Italic%20Nerd%20Font%20Complete.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Italic%20Nerd%20Font%20Complete%20Mono.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Bold%20Nerd%20Font%20Complete%20Mono.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Bold%20Italic%20Nerd%20Font%20Complete.ttf"
"https://git.gensokyo.cafe/kkyy/nerd-fonts-patched-fonts/raw/commit/$_commit/FantasqueSansMono/Fantasque%20Sans%20Mono%20Bold%20Italic%20Nerd%20Font%20Complete%20Mono.ttf"
"LICENSE"
2022-05-22 04:10:37 +09:00
)
b2sums=(
2022-09-20 22:45:55 +09:00
0b88fcd6b381fa1b10540a26d099bfaf83227a0862d78fc6bf4495bbecbea06ff44fba0ac76e91ee5393fb55d61e6e5aef7fa7fd0ec1133946941f69efa3f6b3
4b697677542475616df3e868fe2cfff1228e443886bacbe961e9cf373a57992921ef0b40db64cd13b234ec87a61522f6b7c74a6ce073c62e031d7e59dcd1a9b6
b52afdb6c56a094462024097441d2c7eb94eb804d13ac69024b1b49303a870a3cca0303700a439aaf04e09b748937d5380c5e5e5a74f209995befbba4bc7b454
a468fc2a7eee0c800210a13cbb7e2dbc6554448dea7e3e402193061ffe467cb2d6ae25396af5a8895446af2ac527e2a4696c2c355376f8c049013678862c0794
f5097e24f271dc8b239b1c3028ff3eb773815d27b51da16e13a67a778eaf550e08aa8a0519ccb3816d64cdd80517e41f7d84ce640d2485a42c936696b97f32b2
cb11bb949fec562222b459fbf25e6ea157329f293b70d59c1184fcea7b321f4d6e1086180cf9f516499bdf3fd0c282d703eeaf5e4c5f5263e7d2615f531709eb
dc2ff58e9a2c780087eb70a211c68527eb384e0fdba7caf28c7f1f3c2d59d7433f7c6057baa7d84585948401c695748182d1fa530e9245d42a6630c489acb7f7
984b921fb54da297b45ff53ac0a1dd2ceacd2dc56a1ae16fd79c88f5a69e58703bd3c5cbd0bb7866a34322b28a8068ef8f85e9164d0bb13fd6f65ecc54874731
386dfcb5ead367bfc44fc55f7e94548c03bdb24ca088ab56f9609e7cdaa3eab9c56b548966feaf7312da606b645e9af35556fc212132733efcdbcc17397c808a
2022-05-22 04:10:37 +09:00
)
2018-10-22 16:54:15 +09:00
package() {
2022-05-22 04:10:37 +09:00
for f in *.ttf; do
mv "$f" "${f//%20/ }"
done
2018-10-22 16:54:15 +09:00
find . -iname "*.ttf" -not -iname "*Windows Compatible.ttf" \
-execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \;
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}