new blfs: media-fonts/dejavu-2.37
This commit is contained in:
31
media-fonts/dejavu-2.37.PKGBUILD
Normal file
31
media-fonts/dejavu-2.37.PKGBUILD
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
pkgname=dejavu
|
||||||
|
_name=${pkgname}-fonts-ttf
|
||||||
|
pkgver=2.37
|
||||||
|
pkgdesc="DejaVu fonts, bitstream vera with ISO-8859-2 characters"
|
||||||
|
homepage="https://dejavu-fonts.github.io/"
|
||||||
|
license="BitstreamVera"
|
||||||
|
sources=("${_name}-${pkgver}.tar.bz2")
|
||||||
|
urls=("https://downloads.sourceforge.net/${pkgname}/${sources[0]}")
|
||||||
|
md5sums=("d0efec10b9f110a32e9b8f796e21782c")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
mkdir -pv "${pkgdir}/usr/share/fonts/"
|
||||||
|
cp -rv ttf "${pkgdir}/usr/share/fonts/${pkgname}"
|
||||||
|
FONT_CONF=(
|
||||||
|
fontconfig/20-unhint-small-dejavu-sans-mono.conf
|
||||||
|
fontconfig/20-unhint-small-dejavu-sans.conf
|
||||||
|
fontconfig/20-unhint-small-dejavu-serif.conf
|
||||||
|
fontconfig/57-dejavu-sans-mono.conf
|
||||||
|
fontconfig/57-dejavu-sans.conf
|
||||||
|
fontconfig/57-dejavu-serif.conf
|
||||||
|
)
|
||||||
|
for _conf in ${FONT_CONF[@]}; do
|
||||||
|
install -vDm644 ${_conf} -t "${pkgdir}/etc/fonts/conf.avail/"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=sh syn=sh et sw=2:
|
||||||
Reference in New Issue
Block a user