initial commit

This commit is contained in:
Yiyang Kang 2022-05-24 00:58:46 +08:00
commit 0a63cedd45
4 changed files with 105 additions and 0 deletions

32
.SRCINFO Normal file
View File

@ -0,0 +1,32 @@
pkgbase = nerd-fonts-hack
pkgdesc = Patched font Hack from the nerd-fonts library
pkgver = 2.1.0
pkgrel = 1
url = https://github.com/ryanoasis/nerd-fonts
arch = any
groups = nerd-fonts
license = MIT
depends = fontconfig
provides = nerd-fonts-hack
conflicts = nerd-fonts-git
conflicts = nerd-fonts-complete
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete%20Mono.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/Italic/complete/Hack%20Italic%20Nerd%20Font%20Complete%20Mono.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/Bold/complete/Hack%20Bold%20Nerd%20Font%20Complete%20Mono.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/df6d602440f06695d3db372b45465632de264cc2/patched-fonts/Hack/BoldItalic/complete/Hack%20Bold%20Italic%20Nerd%20Font%20Complete%20Mono.ttf
source = https://github.com/ryanoasis/nerd-fonts/raw/v2.1.0/LICENSE
b2sums = d4f86cb8fe6c6c020b2490eb4f60a59d593d89a2cd7eb86184bb43f6ccd222a6d8ea498811818ecb23c285fb6c11296efa9fdc9a6e2b78d56d98c24d9d0ca0c0
b2sums = 9c13e4739a304a730a0c7c2e16b174e054a1d4e177005e73b45bdc69550a099452eab7d245819bcd95210045cb795618b1af74e68cbdd5e21ab52b6805a16d6a
b2sums = 7a6bff2d43892e6537cf7ac7eac82fbe0d9f7bca94a3a389d7cf72b2403b7b7450e59da916c80e34b300bfc4e5dbdfeb96b718e8284df2477a5903ca00e8b591
b2sums = a5ba509956dec5b9bd6cf64ea5e3583c53c76e1a17ec49d993b65e694880d672d9d0a21146c50270a8f2ea069d26a304029d8f8b322c28912d16534e5a0279f2
b2sums = d0e25e4b55bfc4544767876dd5e1cdcf9f729a77036865c5ce0074100047073e788ce05a44cd2430458ee2d3bd0ab3e5ae60a61ecc0ed8ef61c3421fa6cc1101
b2sums = ba8dc749b1c2e87f399e5645ce8d326baa03a2f7ea1a46de442206ba310da9956e765b5d5eb62ac5df4a98d1bfb4097193853e18d99662c7b74ce73273663204
b2sums = fe8c4c3a1668f464bb591fa974582d8d316bea44a24f49acd4dcd22cfc385f0e68d18fa751d0f6f2a86e153e360da6fea5b513b03eb145933f910626dfa47163
b2sums = f38f18c12e312f5156b8aa9b43fcfaa65ee82958e30fb9134db7a21c4f908388aeae29ceaa57fe55d460a25a8bd3e1cdc7f97ad61ed1d6291ea2c6c72a5201d2
b2sums = ece38b21e41c31a10260b2a99ea23661a945c11b5edbcb625b0e317be59050cc3bc04d72d4b36f94d89c263fd742d31b55f449057ad54a7e912cd1b472a38a84
pkgname = nerd-fonts-hack

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
/pkg/
/src/
*.ttf
*.tar
*.tar.*

22
LICENSE Normal file
View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2014 Ryan L McIntyre
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

46
PKGBUILD Normal file
View File

@ -0,0 +1,46 @@
# Maintainer: Yiyang Kang <kkyy%40kkyy.me>
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"
}