diff options
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | 45-courier-prime.conf | 12 | ||||
-rw-r--r-- | 90-tt-courier-prime.conf | 26 | ||||
-rw-r--r-- | PKGBUILD | 37 |
4 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..41ef880b41f4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +# Generated by mksrcinfo v8 +# Mon Aug 28 02:05:35 UTC 2017 +pkgbase = ttf-courier-prime-ib + pkgdesc = A free, improved, classical monospaced typeface. + pkgver = 1.203 + pkgrel = 9 + url = http://quoteunquoteapps.com/courierprime/ + arch = any + groups = infinality-bundle-fonts + license = custom:OFL + depends = fontconfig + provides = t1-ibm-courier-ib + conflicts = ttf-courier-prime + replaces = ttf-courier-prime + source = http://dimkanovikov.pro/courierprime/courierprime.zip + source = 45-courier-prime.conf + source = 90-tt-courier-prime.conf + sha1sums = 1dc74002d53c2d32b3b2f28c0fe24a51bbc05412 + sha1sums = 718837e1ac40010d446d9c4e8817d221abc3041e + sha1sums = 5b774e915c204364eb9d1bf580264de991c084a4 + +pkgname = ttf-courier-prime-ib + diff --git a/45-courier-prime.conf b/45-courier-prime.conf new file mode 100644 index 000000000000..8611c0756b00 --- /dev/null +++ b/45-courier-prime.conf @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + + <alias> + <family>Courier Prime</family> + <default> + <family>monospace</family> + </default> + </alias> + +</fontconfig> diff --git a/90-tt-courier-prime.conf b/90-tt-courier-prime.conf new file mode 100644 index 000000000000..1f61e50d7af4 --- /dev/null +++ b/90-tt-courier-prime.conf @@ -0,0 +1,26 @@ +<?xml version='1.0'?> +<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> +<fontconfig> + + <match target="font"> + <test name="force_autohint"> + <bool>false</bool> + </test> + <test name="family"> + <string>Courier Prime</string> + </test> + <edit name="antialias" mode="assign"> + <bool>true</bool> + </edit> + <edit name="hinting" mode="assign"> + <bool>true</bool> + </edit> + <edit name="hintstyle" mode="assign"> + <const>hintslight</const> + </edit> + <edit name="autohint" mode="assign"> + <bool>false</bool> + </edit> + </match> + +</fontconfig> diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..049b9328710c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: bohoomil <@zoho.com> + +pkgname=ttf-courier-prime-ib +pkgver=1.203 +pkgrel=9 +depends=('fontconfig') +pkgdesc="A free, improved, classical monospaced typeface." +url="http://quoteunquoteapps.com/courierprime/" +arch=('any') +groups=('infinality-bundle-fonts') +conflicts=('ttf-courier-prime') +replaces=('ttf-courier-prime') +provides=('t1-ibm-courier-ib') +license=('custom:OFL') +source=('http://dimkanovikov.pro/courierprime/courierprime.zip' + 45-courier-prime.conf + 90-tt-courier-prime.conf) +sha1sums=('1dc74002d53c2d32b3b2f28c0fe24a51bbc05412' + '718837e1ac40010d446d9c4e8817d221abc3041e' + '5b774e915c204364eb9d1bf580264de991c084a4') + +package() { + install -m755 -d "${pkgdir}"/usr/share/fonts/"${pkgname}" + find . -type f -name \*.ttf -exec install -Dm644 '{}' \ + "${pkgdir}"/usr/share/fonts/"${pkgname}" \; + + cd "${srcdir}" + install -D -m644 45-courier-prime.conf \ + "${pkgdir}"/etc/fonts/conf.avail/45-courier-prime.conf + install -D -m644 90-tt-courier-prime.conf \ + "${pkgdir}"/etc/fonts/conf.avail/90-tt-courier-prime.conf + + install -m755 -d "${pkgdir}"/etc/fonts/conf.d + cd "${pkgdir}"/etc/fonts/conf.d + ln -s ../conf.avail/45-courier-prime.conf . + ln -s ../conf.avail/90-tt-courier-prime.conf . +} |