summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c19d6178cf62a257ce4609688ad7f1d510ab0b8 (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
26
27
28
29
30
31
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor : Rocky Prabowo <rocky at lazycats dot id>

_pkgbase='nerd-fonts'
_font_name='Meslo'
_font_pkgbase='ttf-meslo'
_font_pkgname='meslo'
_nerdfonts_source='Meslo.zip'

pkgname=${_pkgbase}-${_font_pkgname}
pkgver=2.2.2
pkgrel=2
pkgdesc="Standalone ${_font_name} (${_font_pkgbase}) patched font from the ${_pkgbase} library"
arch=("any")
url="https://github.com/ryanoasis/${_pkgbase}"
license=('MIT')
depends=('fontconfig')
provides=( ${pkgname} )
conflicts=( ${_pkgbase}-git ${_pkgbase}-complete )
groups=( ${_pkgbase} )
source=("${pkgname}-${pkgver}::https://github.com/ryanoasis/${_pkgbase}/releases/download/v${pkgver}/${_nerdfonts_source}"
        "https://github.com/ryanoasis/${_pkgbase}/raw/v${pkgver}/LICENSE")
sha1sums=('d57d073835504b217c4a2c13042ad637eed947e0'
          '3175046f10fc45ffaaf96f5e4023d12316db0688')

package() {
  find . -iname "*.otf" -not -iname "*Windows Compatible.otf" -execdir install -Dm644 {} "${pkgdir}/usr/share/fonts/OTF/{}" \;
  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"
}