Commit c416dc18 authored by Luca Giambonini's avatar Luca Giambonini

Switch to pacman hook - fc-cache #80

fontconfig 2.12.6
gsfonts 20170829
otc-noto-cjk 20170601
[skip-ci]
parent 9e8d8be2
Pipeline #832 skipped
_pkgname=unifont
pkgname=bdf-${_pkgname}
pkgver=11.0.01
pkgrel=1
pkgrel=2
pkgdesc="GNU Unifont Glyphs"
arch=('x86_64')
license=('custom' 'GPL2')
url="http://unifoundry.com/unifont.html"
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
install=unifont.install
source=("http://unifoundry.com/pub/${_pkgname}-${pkgver}/font-builds/${_pkgname}-${pkgver}.bdf.gz" 'LICENSE')
md5sums=('1c391ff0137dce3261ec12f3a3dec410'
'2bb5ee7b73893aa7c9fd837ff95d6b4d')
......
post_install() {
echo -n "Updating font cache... "
fc-cache -f > /dev/null
mkfontscale /usr/share/fonts/misc
mkfontdir /usr/share/fonts/misc
echo "done."
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
pkgname=fontconfig
pkgver=2.11.94
pkgver=2.12.6
pkgrel=1
_ubuntu_diff_version=${pkgver}-0ubuntu2
pkgdesc="A library for configuring and customizing font access"
......@@ -7,21 +7,24 @@ arch=('x86_64')
url="http://www.fontconfig.org/release/"
license=('custom')
depends=('expat' 'freetype2')
makedepends=('gperf')
install='fontconfig.install'
source=("http://www.fontconfig.org/release/$pkgname-$pkgver.tar.bz2"
"http://archive.ubuntu.com/ubuntu/pool/main/f/fontconfig/fontconfig_${_ubuntu_diff_version}.debian.tar.xz"
'29-replace-bitmap-fonts.conf'
'70-yes-bitmaps.conf'
'20-no-embeded.conf')
'20-no-embeded.conf'
fontconfig.hook)
conflicts=('fontconfig-ubuntu')
provides=('fontconfig-ubuntu')
replaces=('fontconfig-ubuntu')
md5sums=('c988ea12f4117330246e041109152b4a'
'1527bc9abef9c13eef6178b4369dda2e'
md5sums=('733f5e2371ca77b69707bd7b30cc2163'
'e49b6389d0f44c4145b2b9c8e5e7e0d9'
'39654873d8ff74d418f533e559b57fb9'
'91c414090c7d8bfe557785fe845cb6bd'
'9b991efd2795149fac2e1452b97aeb74')
'9b991efd2795149fac2e1452b97aeb74'
'ba07f578513842a325e397aa0f696319')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
......@@ -54,7 +57,9 @@ check() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
install -Dm644 ../fontconfig.hook "$pkgdir/usr/share/libalpm/hooks/fontconfig.hook"
# use ubuntu 70-yes-bitmaps.conf
mv ${pkgdir}/etc/fonts/conf.avail/70-yes-bitmaps.conf ${pkgdir}/etc/fonts/conf.avail/70-force-bitmaps.conf
......
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/fonts/*
[Action]
Description = Updating fontconfig cache...
When = PostTransaction
Exec = /usr/bin/fc-cache -s
......@@ -18,28 +18,17 @@ post_install() {
_EOF
echo -n "updating font cache... "
/usr/bin/fc-cache -f
echo "done."
post_upgrade $1
}
post_upgrade() {
echo -n "updating font cache... "
/usr/bin/fc-cache -f
echo "done."
echo -n "Rebuilding fontconfig cache..."
# a full forced directory scan is required here
/usr/bin/fc-cache -rs
echo " done."
}
post_remove() {
if [[ "$1" == "2.8.0-3" ]]; then
rm /etc/fonts/conf.d/20-fix-globaladvance.conf
rm /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
rm /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
rm /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
rm /etc/fonts/conf.d/57-dejavu-sans.conf
rm /etc/fonts/conf.d/57-dejavu-sans-mono.conf
rm /etc/fonts/conf.d/57-dejavu-serif.conf
fi
cat << _EOF
Check for dead symlinks and leftover files
......
# $Id: PKGBUILD 73458 2010-03-26 07:43:21Z francois $
# Maintainer: Firmicus <francois.archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
pkgname=gsfonts
_realname=urw-fonts
pkgver=1.0.7pre44
_fedoraver=2.4
_fedorarel=12.fc18
pkgrel=3
pkgdesc="Ghostscript standard Type1 fonts from URW"
arch=(any)
url="http://sourceforge.net/projects/gs-fonts/"
license=('GPL2')
depends=('xorg-font-utils' 'fontconfig')
makedepends=('rpmextract')
provides=(${_realname})
install=xfonts.install
source=(http://kojipkgs.fedoraproject.org/packages/${_realname}/${_fedoraver}/${_fedorarel}/src/${_realname}-${_fedoraver}-${_fedorarel}.src.rpm)
options=()
md5sums=('7bd842c30948a43eaabb107fb5773647')
pkgver=20170829
pkgrel=1
pkgdesc='(URW)++ Core Font Set [Level 2]'
url='https://github.com/ArtifexSoftware/urw-base35-fonts'
arch=('any')
license=('AGPL3')
makedepends=('git')
_commit=b1605de3323b42ca3fae7aea3bf2dd72aa2cd490 # master
source=("git+https://github.com/ArtifexSoftware/urw-base35-fonts#commit=${_commit}")
sha256sums=('SKIP')
build() {
cd $srcdir || return 1
/usr/bin/rpmextract.sh ${_realname}-${_fedoraver}-${_fedorarel}.src.rpm || return 1
bsdtar xf *.tar.bz2 || return 1
install -d ${pkgdir}/usr/share/fonts/Type1
install -m644 *.{pfb,pfm,afm} \
${pkgdir}/usr/share/fonts/Type1/ || return 1
pkgver() {
cd urw-base35-fonts
echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD)
}
package() {
cd urw-base35-fonts
install -Dt "${pkgdir}/usr/share/fonts/${pkgname}" -m644 fonts/*.otf
install -Dt "${pkgdir}/usr/share/appdata" -m644 appstream/*.xml
install -d "${pkgdir}"/etc/fonts/conf.{avail,d}
for _f in fontconfig/*.conf; do
_fn="${pkgdir}/etc/fonts/conf.avail/69-${_f##*/}"
install -m644 ${_f} "${_fn}"
ln -srt "${pkgdir}/etc/fonts/conf.d" "${_fn}"
done
}
pkgname=otc-noto-cjk
pkgver=1.004+4+gff6b779
pkgver=20170601
pkgrel=1
_commit=32a5844539f2e348ed36b44e990f9b06d7fb89fe
pkgdesc="Google Noto CJK fonts"
arch=(any)
url="https://www.google.com/get/noto/"
......@@ -8,12 +9,10 @@ license=(custom:SIL)
depends=(fontconfig)
provides=(otf-noto ttf-noto-cjk)
replaces=("ttf-noto-cjk<${pkgver}")
install=$pkgname.install
source=("https://github.com/googlei18n/noto-cjk/archive/master.zip")
sha256sums=('24ba4d42ee7330732f4f3f81b29fe0007efd422aa29697247ffb0a2f36e5221a')
source=($pkgname-$pkgver.zip::"https://github.com/googlei18n/noto-cjk/archive/$_commit.zip")
sha256sums=('31e53af3f5e97ae021f24f960608e98f64aaa12804eda7fb583dcfaa8d496ebf')
package() {
mkdir -p "$pkgdir"/usr/share/fonts/OTF
install -m644 noto-cjk-master/*.ttc "$pkgdir"/usr/share/fonts/OTF
install -Dm644 noto-cjk-master/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dt "$pkgdir"/usr/share/fonts/noto-cjk -m644 noto-cjk-*/*.ttc
install -Dt "$pkgdir"/usr/share/licenses/$pkgname -m644 noto-cjk-*/LICENSE
}
post_install() {
fc-cache -s
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
......@@ -2,13 +2,12 @@ pkgname=otf-source-code-pro
pkgver=2.030
_relver=2.030R-ro/1.050R-it
_tarver=${_relver//\//-}
pkgrel=1
pkgrel=2
pkgdesc="A set of mono-spaced OpenType fonts designed for coding environments"
arch=('x86_64')
url="http://adobe-fonts.github.io/source-code-pro/"
license=('custom')
depends=('fontconfig')
install=otf.install
source=("${_tarver}.tar.gz::https://github.com/adobe-fonts/source-code-pro/archive/${_relver}.tar.gz")
sha256sums=('a4e4dd59b8e0a436b934f0f612c2e91b5932910c6d1c3b7d1a5a9f389c86302b')
......
post_install() {
post_remove $1
}
post_upgrade() {
post_install $1
}
post_remove() {
echo -n "==> Rebuilding font cache... "
fc-cache -f &> /dev/null
mkfontscale /usr/share/fonts/OTF
mkfontdir /usr/share/fonts/OTF
echo "done"
}
pkgbase=otf-source-han-sans
pkgname=($pkgbase $pkgbase-kr $pkgbase-cn $pkgbase-tw ${pkgbase/otf/otc})
pkgver=1.004
pkgrel=4
pkgrel=5
pkgdesc='Adobe Source Han Sans - A set of Pan-CJK fonts designed to complement Source Sans Pro'
arch=('any')
license=('custom:OFL')
url='http://sourceforge.net/adobe/source-han-sans'
depends=('fontconfig')
install="${pkgbase}.install"
source=()
_commit=5f5311e71cb628321cc0cffb51fb38d862b726aa
......
post_install() {
echo -n "Updating font cache... "
fc-cache -fs >/dev/null
echo "Done."
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment