aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-09-27 23:53:35 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-09-27 23:53:40 +0200
commit211d8a436c19922d6a02fadb8d51ed9563556022 (patch)
tree7cc8a993899c5eeb5f84a4e9e38422fbc0702c5b
parentc443ff3188ddc6e72ce25bfca5ed757dd562a3d7 (diff)
downloadaports-211d8a436c19922d6a02fadb8d51ed9563556022.tar.gz
aports-211d8a436c19922d6a02fadb8d51ed9563556022.tar.bz2
aports-211d8a436c19922d6a02fadb8d51ed9563556022.tar.xz
community/font-noto: upgrade to 20170920 and split languages
-rw-r--r--community/font-noto/APKBUILD108
1 files changed, 89 insertions, 19 deletions
diff --git a/community/font-noto/APKBUILD b/community/font-noto/APKBUILD
index 9546835ea7..c5a98bb05a 100644
--- a/community/font-noto/APKBUILD
+++ b/community/font-noto/APKBUILD
@@ -1,7 +1,8 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=font-noto
-pkgver=0_git20161104
+pkgver=0_git20170920
+_sha=5a89b487c648c34c2b6d1b9ebb73bb3fab1df4b2
pkgrel=0
pkgdesc="Google's font family that aims to support all the world's languages"
url="https://github.com/googlei18n/noto-fonts/"
@@ -9,33 +10,102 @@ arch="noarch"
license="OFL-1.1"
depends="fontconfig"
makedepends=""
+options="!check"
install=""
-subpackages="font-croscore:croscore"
-source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz"
-builddir="$srcdir/font-noto-$pkgver"
-giturl="https://github.com/googlei18n/noto-fonts.git"
-disturl="dev.alpinelinux.org:/archive/$pkgname"
+source="$pkgname-$pkgver.tar.gz::https://github.com/googlei18n/noto-fonts/archive/$_sha.tar.gz"
+builddir="$srcdir/noto-fonts-$_sha"
+#
+# NOTE: sort list by string length >
+# to prevent find doing partial matching
+#
+_langs="
+ adlamunjoined
+ glagolitic
+ devanagari
+ oldturkic
+ malayalam
+ tifinagh
+ gurmukhi
+ gujarati
+ georgian
+ ethiopic
+ cherokee
+ armenian
+ tibetan
+ sinhala
+ shavian
+ osmanya
+ olchiki
+ myanmar
+ mandaic
+ kayahli
+ kannada
+ deseret
+ cypriot
+ bengali
+ avestan
+ thaana
+ telugu
+ hebrew
+ gothic
+ chakma
+ carian
+ arabic
+ tamil
+ osage
+ oriya
+ khmer
+ buhid
+ bamum
+ adlam
+ thai
+ lisu
+ vai
+ nko
+ lao
+ "
+for _lang in $_langs; do
+ subpackages="$subpackages $pkgname-$_lang:_split"
+done
+subpackages="$subpackages font-croscore:croscore $pkgname-extra"
-
-build() {
- cd "$builddir"
+build() {
+ return 0
}
package() {
- cd "$builddir"
mkdir -p "$pkgdir"/usr/share/fonts/noto
- install -m644 hinted/Noto*.ttf \
- "$pkgdir"/usr/share/fonts/noto || return 1
+ install -m644 "$builddir"/hinted/*.ttf \
+ "$pkgdir"/usr/share/fonts/noto/
+}
+
+extra() {
+ pkgdesc="$pkgdesc (additional variants)"
+ mkdir -p "$subpkgdir"/usr/share/fonts/noto
+ local font
+ for font in Condensed SemiBold Extra; do
+ mv "$pkgdir"/usr/share/fonts/noto/*${font}*.ttf \
+ "$subpkgdir"/usr/share/fonts/noto
+ done
}
croscore() {
pkgdesc="Chrome OS core fonts"
- mkdir -p "$subpkgdir"/usr/share/fonts/croscore
- cd "$builddir"/hinted
- install -m644 Arimo*.ttf Cousine*.ttf Tinos*.ttf \
- "$subpkgdir"/usr/share/fonts/croscore || return 1
+ mkdir -p "$subpkgdir"/usr/share/fonts/noto
+ local font
+ for font in Arimo Cousine Tinos; do
+ mv "$pkgdir"/usr/share/fonts/noto/${font}*.ttf \
+ "$subpkgdir"/usr/share/fonts/noto
+ done
+}
+
+_split() {
+ local lang=${subpkgname##*-}
+ pkgdesc="$pkgdesc ($lang)"
+ mkdir -p "$subpkgdir"/usr/share/fonts/noto
+ find "$pkgdir"/usr/share/fonts/noto \
+ -iname "Noto*${lang}*.ttf" -exec \
+ mv {} "$subpkgdir"/usr/share/fonts/noto \;
}
-md5sums="8cedf79d3c0dc36cd8a36e4b7d2f125f font-noto-0_git20161104.tar.gz"
-sha256sums="f28c7519b8970fa3a3367be9d40540ba7cf565a6ec5f7d38de3da9531768b634 font-noto-0_git20161104.tar.gz"
-sha512sums="24e2c67f346879aa8bed0fb89611e35108fde9abcdab6d00f0dc5f8056730a97eaad9d7d306caf95be690ab12022997006595d492eee2e55232f85b919d6f242 font-noto-0_git20161104.tar.gz"
+sha512sums="616e1cc73478b5f85611a18dc05a52e78a31600c823514db2ba24c7b7dac8f6bb63f4a63e04a40a2f49064aa330616a79e59d7727969e0ecf01f935bc123f275 font-noto-0_git20170920.tar.gz"