summaryrefslogtreecommitdiff
path: root/comic-neue/PKGBUILD
blob: b1e238564883d29982bd18d415b2a04708e10d0a (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
41
42
43
44
# Maintainer: Deposite Pirate <dpirate at metalpunks dot info>
#
# Upstream: https://git.metalpunks.info/arch-ports

pkgbase=comic-neue
pkgname=(ttf-comic-neue otf-comic-neue)
pkgver=2.51
pkgrel=1
pkgdesc='Comic Neue is an extended replacement for the Comic Sans MS font'
arch=('any')
url='http://comicneue.com'
license=('custom:OFL')
source=("${url}/${pkgbase}-${pkgver}.zip"
        'fontconfig.conf')
sha256sums=('54dd998c93b8d6658b1c2d6ade9f790d10ffaa3632868dd2cfac84b405290321'
            'c30876b732eaf4b6491642a53651b31259ba36308c4e668b1e37ad2c8ad86088')

package_ttf-comic-neue() {
  pkgdesc='An extended replacement for Comic Sans MS (TTF format)'
  conflict=('otf-comic-neue')

  cd "${pkgbase}-${pkgver}"
  install -Dm755 "${pkgdir}/usr/share/fonts/TTF"
  install -m644 TTF/Comic{Neue,Neue-Angular}/*.ttf \
    "${pkgdir}/usr/share/fonts/TTF"
  install -Dm644 OFL.txt \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 ../fontconfig.conf \
    "${pkgdir}/usr/share/fontconfig/conf.avail/75-${pkgname}.conf"
}

package_otf-comic-neue() {
  pkgdesc='An extended replacement for Comic Sans MS (OTF format)'
  conflict='ttf-comic-neue'

  cd "${pkgbase}-${pkgver}"
  install -Dm755 "${pkgdir}/usr/share/fonts/OTF"
  install -m644 OTF/Comic{Neue,Neue-Angular}/*.otf \
    "${pkgdir}/usr/share/fonts/OTF"
  install -Dm644 OFL.txt \
    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 ../fontconfig.conf \
    "${pkgdir}/usr/share/fontconfig/conf.avail/75-${pkgname}.conf"
}