From 8b4c17f0b6c4ec39200692e05b9536a9fc37c1a4 Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Mon, 13 Apr 2020 13:50:46 +0300 Subject: [PATCH] ttf-cm-unicode: New package --- mingw-w64-ttf-cm-unicode/PKGBUILD | 26 ++++++++++++++++++++ mingw-w64-ttf-cm-unicode/font-i686.install | 15 +++++++++++ mingw-w64-ttf-cm-unicode/font-x86_64.install | 15 +++++++++++ 3 files changed, 56 insertions(+) create mode 100644 mingw-w64-ttf-cm-unicode/PKGBUILD create mode 100644 mingw-w64-ttf-cm-unicode/font-i686.install create mode 100644 mingw-w64-ttf-cm-unicode/font-x86_64.install diff --git a/mingw-w64-ttf-cm-unicode/PKGBUILD b/mingw-w64-ttf-cm-unicode/PKGBUILD new file mode 100644 index 0000000000000..29f80c2261404 --- /dev/null +++ b/mingw-w64-ttf-cm-unicode/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Konstantin Podsvirov + +_basename=cm-unicode +_realname=ttf-${_basename} +pkgbase=mingw-w64-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") +pkgver=0.7.0 +pkgrel=1 +pkgdesc="Computer Modern Unicode ttf fonts (mingw-w64)" +arch=('any') +url="http://canopus.iacp.dvo.ru/~panov/cm-unicode/" +license=('custom:OFL1.1') +depends=("${MINGW_PACKAGE_PREFIX}-fontconfig") +install=font-${CARCH}.install +source=("${_basename}-${pkgver}-ttf.tar.xz::http://downloads.sourceforge.net/project/${_basename}/${_basename}/${pkgver}/${_basename}-${pkgver}-ttf.tar.xz") +sha256sums=('2609c14450f42d0bcd40203900afcb1d693521a9b24a18c65e14b6b0585ff150') + +package() { + cd "${srcdir}/${_basename}-${pkgver}" + mkdir -p "${pkgdir}${MINGW_PREFIX}/share/fonts/TTF" + mkdir -p "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}" + cp -r *.ttf "${pkgdir}${MINGW_PREFIX}/share/fonts/TTF/" + cp -r OFL*.txt "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/" +} + +# vim:set ts=2 sw=2 et: diff --git a/mingw-w64-ttf-cm-unicode/font-i686.install b/mingw-w64-ttf-cm-unicode/font-i686.install new file mode 100644 index 0000000000000..b469404655532 --- /dev/null +++ b/mingw-w64-ttf-cm-unicode/font-i686.install @@ -0,0 +1,15 @@ +post_install() { + post_upgrade $1 +} + +post_upgrade() { + echo -n "Rebuilding fontconfig cache..." + # a full forced directory scan is required here + /mingw32/bin/fc-cache -rs + echo " done." +} + +post_remove() { + post_upgrade $1 +} + diff --git a/mingw-w64-ttf-cm-unicode/font-x86_64.install b/mingw-w64-ttf-cm-unicode/font-x86_64.install new file mode 100644 index 0000000000000..bb71553d592ef --- /dev/null +++ b/mingw-w64-ttf-cm-unicode/font-x86_64.install @@ -0,0 +1,15 @@ +post_install() { + post_upgrade $1 +} + +post_upgrade() { + echo -n "Rebuilding fontconfig cache..." + # a full forced directory scan is required here + /mingw64/bin/fc-cache -rs + echo " done." +} + +post_install() { + post_upgrade $1 +} +