diff options
author | Deposite Pirate | 2022-02-08 02:19:44 +0100 |
---|---|---|
committer | Deposite Pirate | 2022-02-08 02:19:44 +0100 |
commit | 2cf17b7e6f80e0d8dc322e06c32dde26898f1fa5 (patch) | |
tree | 130d0bbb92aebb1818e0c3410276eae78c855c8e | |
parent | 23d9572654253014344f296a99f6dd68008197ac (diff) |
A replacement for Comic Sans MS
new file: comic-neue/.SRCINFO
new file: comic-neue/PKGBUILD
new file: comic-neue/fontconfig.conf
-rw-r--r-- | comic-neue/.SRCINFO | 15 | ||||
-rw-r--r-- | comic-neue/PKGBUILD | 50 | ||||
-rw-r--r-- | comic-neue/fontconfig.conf | 11 |
3 files changed, 76 insertions, 0 deletions
diff --git a/comic-neue/.SRCINFO b/comic-neue/.SRCINFO new file mode 100644 index 0000000..97d2792 --- /dev/null +++ b/comic-neue/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = comic-neue + pkgdesc = Comic Neue is an extended replacement for the Comic Sans MS font + pkgver = 2.51 + pkgrel = 1 + url = http://comicneue.com + arch = any + license = custom:OFL + source = http://comicneue.com/comic-neue-2.51.zip + source = fontconfig.conf + sha256sums = 54dd998c93b8d6658b1c2d6ade9f790d10ffaa3632868dd2cfac84b405290321 + sha256sums = c30876b732eaf4b6491642a53651b31259ba36308c4e668b1e37ad2c8ad86088 + +pkgname = ttf-comic-neue + +pkgname = otf-comic-neue diff --git a/comic-neue/PKGBUILD b/comic-neue/PKGBUILD new file mode 100644 index 0000000..856ea40 --- /dev/null +++ b/comic-neue/PKGBUILD @@ -0,0 +1,50 @@ +# 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') + +function _package { + + cd "${pkgbase}-${pkgver}" + + case "${1}" in + ttf-comic-neue) + pkgdesc='Comic Neue is an extended replacement for the Comic Sans MS font' + cd TTF + fonts=(ComicNeue/*.ttf ComicNeue-Angular/*.ttf) + installdir=TTF;; + otf-comic-neue) + pkgdesc='Comic Neue is an extended replacement for the Comic Sans MS font' + cd OTF + fonts=(ComicNeue/*.otf ComicNeue-Angular/*.otf) + installdir=OTF;; + esac + + install -dm755 "${pkgdir}/usr/share/fonts/${installdir}" + + for font in "${fonts[@]}"; do + install -m644 "${font}" "${pkgdir}/usr/share/fonts/${installdir}" + done + + install -D -m644 ../../fontconfig.conf \ + "${pkgdir}/usr/share/fontconfig/conf.avail/75-${pkgname}.conf" + + install -D -m644 ../OFL.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + +} + +for _pkgname in ${pkgname[@]}; do + eval "function package_${_pkgname}() { _package ${_pkgname}; }" +done diff --git a/comic-neue/fontconfig.conf b/comic-neue/fontconfig.conf new file mode 100644 index 0000000..a812aba --- /dev/null +++ b/comic-neue/fontconfig.conf @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> +<!-- Replace Comic Sans MS with Comic Neue --> +<alias> + <family>Comic Sans MS</family> + <prefer> + <family>Comic Neue</family> + </prefer> +</alias> +</fontconfig> |