summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acbcbaf36483c1b5bc23f2be8728488a59a55b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: revsuine <paradoor at protonmail dot com>
pkgname=ttf-gohufont-nerd
pkgver=v3.1.1
pkgrel=1
pkgdesc="A bitmap font for programming and terminal use, patched to include Nerd Font symbols."
arch=('any')
url="https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Gohu"
license=('MIT')
depends=()
makedepends=()
optdepends=()
source=("https://github.com/ryanoasis/nerd-fonts/releases/download/$pkgver/Gohu.tar.xz")
sha256sums=('SKIP') # nerd fonts do not provide sums

package() {
    _installation_dir="${pkgdir}/usr/share/fonts/TTF/GohuFontNerd"
    install -dm 755 "${_installation_dir}"

    # copy everything matching this pattern
    cd "${srcdir}"
    for ttf in $(ls | grep "GohuFont[^\s\.]*\.ttf")
    do
        install -m 644 "${ttf}" "${_installation_dir}/${ttf}"
    done
}