summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9e2a33907aa9b4f3f2afc08db8f4424e1be8bb1 (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
32
33
34
35
36
37
38
39
40
# Maintainer: Severen Redwood <severen@shrike.me>
# Report all package issues to `https://github.com/SShrike/pkgbuilds`

_fontname="monoid"
pkgname="ttf-${_fontname}"
pkgver='0.61'
pkgrel=2
pkgdesc='A customisable coding font'
arch=('any')
license=('MIT' 'custom:OFL')
depends=('xorg-font-utils' 'fontconfig')
url='http://larsenwork.com/monoid/'
source=(
  'https://cdn.rawgit.com/larsenwork/monoid/f16ff9058bb97eafd78d61d415dedefe2d092562/Monoid.zip'
  'https://raw.githubusercontent.com/larsenwork/monoid/0abc451aaaa650198c065cd97aea4e7895931227/Readme.md'
)
md5sums=(
  '5d9163c0096077142e8d7f67d0ecc479'
  '581d685bd80e176ca0936da15b1f3342'
)
install="${pkgname}.install"

package() {
  install -D -m644 \
    'Monoid-Regular.ttf' "${pkgdir}/usr/share/fonts/TTF/Monoid-Regular.ttf"
  install -D -m644 \
    'Monoid-Bold.ttf' "${pkgdir}/usr/share/fonts/TTF/Monoid-Bold.ttf"
  install -D -m644 \
    'Monoid-Italic.ttf' "${pkgdir}/usr/share/fonts/TTF/Monoid-Italic.ttf"
  install -D -m644 \
    'Monoid-Retina.ttf' "${pkgdir}/usr/share/fonts/TTF/Monoid-Retina.ttf"

  # Extract the license from the README.
  sed -n '/Monoid is dual licensed/,/OTHER DEALINGS IN THE FONT SOFTWARE./p' \
    'Readme.md' > \
    'LICENSE'
  install -D -m644 \
    'LICENSE' \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}