Skip to content

Commit

Permalink
ttf-cm-unicode: New package
Browse files Browse the repository at this point in the history
  • Loading branch information
podsvirov committed Apr 13, 2020
1 parent 62b98e4 commit 31f00a5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
26 changes: 26 additions & 0 deletions mingw-w64-ttf-cm-unicode/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: Konstantin Podsvirov <[email protected]>

_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:
15 changes: 15 additions & 0 deletions mingw-w64-ttf-cm-unicode/font-i686.install
Original file line number Diff line number Diff line change
@@ -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
}

15 changes: 15 additions & 0 deletions mingw-w64-ttf-cm-unicode/font-x86_64.install
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 31f00a5

Please sign in to comment.