diff --git a/main/mkfontscale/APKBUILD b/main/mkfontscale/APKBUILD index e1c701fb28c9c4ea6859ef3492bba1b2e722c635..815f43a6fbc2d48384db1d9402863beb24ee20d8 100644 --- a/main/mkfontscale/APKBUILD +++ b/main/mkfontscale/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mkfontscale pkgver=1.2.3 -pkgrel=0 +pkgrel=1 pkgdesc="Scalable font index generator for X" url="https://xorg.freedesktop.org/" arch="all" diff --git a/main/mkfontscale/mkfontscale.trigger b/main/mkfontscale/mkfontscale.trigger index 1bd9d93ff698767a74b101e700a33488ee556655..ea3af6ca2399d0bfd4017130c14ce24476108d3a 100644 --- a/main/mkfontscale/mkfontscale.trigger +++ b/main/mkfontscale/mkfontscale.trigger @@ -5,7 +5,10 @@ for i in "$@"; do # encodings dir doesn't include fonts */encodings) continue; esac - mkfontdir "$i" - mkfontscale "$i" + [ -d "$i" ] || continue + rm -f "$i"/fonts.dir "$i"/fonts.scale + rmdir "$i" 2>/dev/null || { + mkfontdir "$i" + mkfontscale "$i" + } done -