summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPedro A. López-Valencia2020-07-29 18:27:13 -0500
committerPedro A. López-Valencia2020-07-29 18:27:13 -0500
commit8cb914c1edeca008cf7edde56f119299484db10d (patch)
tree05e733a65d4950bc20b727e306e3d5e641aaf4fc /PKGBUILD
parenta075c2e5ef3ff030a12549b0ce0ada25b7f57c52 (diff)
downloadaur-ttf-literata.tar.gz
Update to 3.002. There are two sets now, two TT Collection files and a set of optical sizes.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 25 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 96f0bfd5220..a9b25f8cec0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Pedro A. López-Valencia <https://aur.archlinux.org/user/vorbote>
-pkgname=ttf-literata
-pkgver=2.201
-pkgrel=2
+pkgname=('ttf-literata' 'ttf-literata-opticals')
+pkgbase=ttf-literata
+pkgver=3.002
+pkgrel=1
pkgdesc="Google's default typeface for Play Books. Truetype, open source (OFL) distribution."
arch=('any')
url="https://github.com/googlefonts/literata"
@@ -9,18 +10,31 @@ license=('custom:OFL')
depends=('fontconfig' 'xorg-font-util')
conflicts=('otf-literata')
replaces=('otf-literata')
-#source=("https://github.com/googlefonts/literata/releases/download/$pkgver/Literata-v$pkgver.zip")
-source=("https://github.com/googlefonts/literata/releases/download/v$pkgver/Literata-v$pkgver.zip")
-source+=("https://github.com/googlefonts/literata/raw/master/OFL.txt")
-sha256sums=('b932af6bea23e1b62d2c524154001886ba3ddaafa7f81a88cb96277e2a452545'
- '8742963604cd89dc81437811a850018fc03b2bfad686d7422c8235967c87614e')
+source=("https://github.com/googlefonts/literata/releases/download/$pkgver/Literata-v$pkgver.zip"
+ "https://github.com/googlefonts/literata/raw/master/OFL.txt")
+b2sums=('369759afd37f4503d9bc07eb592e963879e5dda8772c07b457f2d9308c1ae1a4411a8ed6263d358211efd49d6206004da881c9253e79d714b7aaad96520b7070'
+ '2a91a436d60192c0794f4114ef755a23f99a062b1485f96ee4196f862cd8c022079cbb2310d3406dc5059a01d6986663e7ecf2411a52d2d5425cbe07301bc2d6')
-package() {
+package_ttf-literata() {
+pkgname='ttf-literata'
+pkgdesc="Google's default typeface for Play Books. Truetype Collections, open source (OFL) distribution."
cd "$srcdir"
- install -dm755 "$pkgdir/usr/share/fonts/TTF/literata"
+ install -dm755 "$pkgdir/usr/share/fonts/TTF/literata-variable"
install -dm755 "$pkgdir/usr/share/licences/$pkgname"
- install -m644 ttfs/Literata*.ttf "$pkgdir/usr/share/fonts/TTF/literata"
+ install -m644 variable/Literata*.ttf "$pkgdir/usr/share/fonts/TTF/literata-variable"
+ install -m644 OFL.txt "$pkgdir/usr/share/licences/$pkgname"
+}
+
+package_ttf-literata-opticals() {
+pkgname='ttf-literata-opticals'
+pkgdesc="Google's default typeface for Play Books. Truetype opticals, open source (OFL) distribution."
+ cd "$srcdir"
+
+ install -dm755 "$pkgdir/usr/share/fonts/TTF/literata-opticals"
+ install -dm755 "$pkgdir/usr/share/licences/$pkgname"
+
+ install -m644 static/ttf/Literata*.ttf "$pkgdir/usr/share/fonts/TTF/literata-opticals"
install -m644 OFL.txt "$pkgdir/usr/share/licences/$pkgname"
}