dejavu-fonts-ttf: set homepage/license; register with fontconfig properly.
This commit is contained in:
parent
987bee940e
commit
7ac27c3c83
|
@ -0,0 +1,15 @@
|
|||
_files="
|
||||
20-unhint-small-dejavu-sans-mono.conf
|
||||
20-unhint-small-dejavu-sans.conf
|
||||
20-unhint-small-dejavu-serif.conf
|
||||
57-dejavu-sans-mono.conf
|
||||
57-dejavu-sans.conf
|
||||
57-dejavu-serif.conf"
|
||||
|
||||
case ${ACTION} in
|
||||
post)
|
||||
for f in ${_files}; do
|
||||
cd etc/fonts/conf.d && ln -sfr ../conf.avail/${f} .
|
||||
done
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,15 @@
|
|||
_files="
|
||||
20-unhint-small-dejavu-sans-mono.conf
|
||||
20-unhint-small-dejavu-sans.conf
|
||||
20-unhint-small-dejavu-serif.conf
|
||||
57-dejavu-sans-mono.conf
|
||||
57-dejavu-sans.conf
|
||||
57-dejavu-serif.conf"
|
||||
|
||||
case ${ACTION} in
|
||||
post)
|
||||
for f in ${_files}; do
|
||||
rm -f etc/fonts/conf.d/${f}
|
||||
done
|
||||
;;
|
||||
esac
|
|
@ -1,25 +1,23 @@
|
|||
# Template file for 'dejavu-fonts-ttf'
|
||||
pkgname=dejavu-fonts-ttf
|
||||
version=2.33
|
||||
distfiles="${SOURCEFORGE_SITE}/dejavu/$pkgname-$version.tar.bz2"
|
||||
fulldepends="font-util"
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="DejaVu family of TrueType fonts"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://dejavu-fonts.org/wiki/Main_Page"
|
||||
license="MIT, Public domain"
|
||||
distfiles="${SOURCEFORGE_SITE}/dejavu/$pkgname-$version.tar.bz2"
|
||||
checksum=82a5823a270715913af51915cc20594568f57afb7450abb989695d8808a4194d
|
||||
long_desc="
|
||||
DejaVu is a family of fonts derived from the Bitstream Vera family.
|
||||
It provides a wider range of characters than the original. These
|
||||
TrueType fonts include serif, sans serif, monospaced, and experimental
|
||||
condensed serif and sans serif families with regular (Roman), Bold,
|
||||
Oblique and Bold Oblique typefaces."
|
||||
|
||||
noarch=yes
|
||||
fulldepends="font-util"
|
||||
font_dirs="/usr/share/fonts/TTF"
|
||||
|
||||
do_install() {
|
||||
vmkdir usr/share/fonts/TTF
|
||||
install -m644 ttf/*.ttf ${DESTDIR}/usr/share/fonts/TTF
|
||||
vmkdir etc/fonts/conf.avail
|
||||
install -m644 fontconfig/*.conf ${DESTDIR}/etc/fonts/conf.avail
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/share/fonts/TTF
|
||||
install -m644 ${wrksrc}/ttf/*.ttf ${DESTDIR}/usr/share/fonts/TTF
|
||||
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue