noto-fonts-ttf: update to 20180322, split -extra subpkg

Closes: #12662 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
cr6git 2018-03-19 01:15:39 +01:00 committed by Jürgen Buchmüller
parent 67ac145b69
commit caf629e262
No known key found for this signature in database
GPG key ID: 6764EC32352D0647
2 changed files with 19 additions and 9 deletions

View file

@ -0,0 +1 @@
noto-fonts-ttf

View file

@ -1,9 +1,9 @@
# Template build file for 'noto-fonts-ttf'.
# Template file for 'noto-fonts-ttf'
pkgname=noto-fonts-ttf
version=20170307
revision=2
noarch="yes"
_githash=60aa0da2ee84b11e78725b4577edc2e80b009d56
version=20180322
revision=1
noarch=yes
_githash=b207fc31b093948dfc6d77b47042ce2f335bc631
wrksrc="noto-fonts-${_githash}"
depends="font-util"
font_dirs="/usr/share/fonts/noto"
@ -11,11 +11,20 @@ short_desc="Google Noto TTF Fonts"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
license="OFL-1.1"
homepage="https://www.google.com/get/noto/"
distfiles="https://github.com/googlei18n/noto-fonts/archive/${_githash}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=093a82887c9574f33f999aa9bdcd26e6a59ec0603612c2c0b6723994f3fb82ca
distfiles="https://github.com/googlei18n/noto-fonts/archive/${_githash}.tar.gz"
checksum=67e8ba8c18ab1523bba9bf11c6c26a1d1083bddce04b1ff523183dbab64db7e9
conflicts="google-fonts-ttf>=0"
do_install() {
vmkdir usr/share/fonts/noto
install -m644 hinted/Noto*.ttf ${DESTDIR}/usr/share/fonts/noto
install -Dm644 hinted/Noto*.ttf -t ${DESTDIR}/usr/share/fonts/noto
}
noto-fonts-ttf-extra_package() {
depends="noto-fonts-ttf"
short_desc+=" - additional variants"
pkg_install() {
vmove usr/share/fonts/noto/Noto*Condensed*.ttf
vmove usr/share/fonts/noto/Noto*SemiBold*.ttf
vmove usr/share/fonts/noto/Noto*Extra*.ttf
}
}