# Maintainer: Yiyang Kang pkgname=nerd-fonts-hack pkgver=2.1.0 pkgrel=1 pkgdesc="Patched font Hack from the nerd-fonts library" arch=("any") url="https://github.com/ryanoasis/nerd-fonts" license=('MIT') depends=('fontconfig') provides=('nerd-fonts-hack') conflicts=('nerd-fonts-git' 'nerd-fonts-complete') groups=("nerd-fonts") _commit=df6d602440f06695d3db372b45465632de264cc2 source=( "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete%20Mono.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete%20Mono.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete%20Mono.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete.ttf" "https://github.com/ryanoasis/nerd-fonts/raw/$_commit/patched-fonts/Hack/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete%20Mono.ttf" "${url}/raw/v$pkgver/LICENSE" ) b2sums=( d4f86cb8fe6c6c020b2490eb4f60a59d593d89a2cd7eb86184bb43f6ccd222a6d8ea498811818ecb23c285fb6c11296efa9fdc9a6e2b78d56d98c24d9d0ca0c0 9c13e4739a304a730a0c7c2e16b174e054a1d4e177005e73b45bdc69550a099452eab7d245819bcd95210045cb795618b1af74e68cbdd5e21ab52b6805a16d6a 7a6bff2d43892e6537cf7ac7eac82fbe0d9f7bca94a3a389d7cf72b2403b7b7450e59da916c80e34b300bfc4e5dbdfeb96b718e8284df2477a5903ca00e8b591 a5ba509956dec5b9bd6cf64ea5e3583c53c76e1a17ec49d993b65e694880d672d9d0a21146c50270a8f2ea069d26a304029d8f8b322c28912d16534e5a0279f2 d0e25e4b55bfc4544767876dd5e1cdcf9f729a77036865c5ce0074100047073e788ce05a44cd2430458ee2d3bd0ab3e5ae60a61ecc0ed8ef61c3421fa6cc1101 ba8dc749b1c2e87f399e5645ce8d326baa03a2f7ea1a46de442206ba310da9956e765b5d5eb62ac5df4a98d1bfb4097193853e18d99662c7b74ce73273663204 fe8c4c3a1668f464bb591fa974582d8d316bea44a24f49acd4dcd22cfc385f0e68d18fa751d0f6f2a86e153e360da6fea5b513b03eb145933f910626dfa47163 f38f18c12e312f5156b8aa9b43fcfaa65ee82958e30fb9134db7a21c4f908388aeae29ceaa57fe55d460a25a8bd3e1cdc7f97ad61ed1d6291ea2c6c72a5201d2 ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84 ) package() { for f in *.ttf; do mv "$f" "${f//%20/ }" done find . -iname "*.ttf" -execdir install -Dm644 {} "$pkgdir/usr/share/fonts/TTF/{}" \; install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }