summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Snell2019-07-12 17:03:52 -0400
committerChris Snell2019-07-12 17:03:52 -0400
commit269b266ffb1a0f706618d49eff51a9fb114e2b64 (patch)
tree10994d4d62bb1e48786323b6aa5aac5e655f78c7
parente0d3061b9b664916a046f6a547db3766c353aa33 (diff)
downloadaur-269b266ffb1a0f706618d49eff51a9fb114e2b64.tar.gz
Add otf-inter-ui package with OTF fonts
-rw-r--r--PKGBUILD20
1 files changed, 14 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 355f79730e9..cb0ea2cf039 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: Chris Snell <chris.snell@gmail.com>
+# Contributor: Timo Wilken <timo 21 wilken plus aur at gmail dot com>
-pkgname=ttf-inter-ui
+pkgname=(ttf-inter-ui otf-inter-ui)
pkgver=3.7
-pkgrel=1
+pkgrel=2
pkgdesc="A font for highly legible text on computer screens"
url="https://rsms.me/inter/"
arch=(any)
@@ -12,11 +13,18 @@ conflicts=('ttf-interface')
source=("Inter-${pkgver}.zip::https://github.com/rsms/inter/releases/download/v${pkgver}/Inter-${pkgver}.zip")
sha256sums=('0eb097467954991e109d179e22f06b11ef462e632dac5ce65633aa6e7262fa40')
-package() {
+package_ttf-inter-ui() {
+ install -d "$pkgdir/usr/share/fonts/${pkgname%-fonts}"
+ install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 "Inter (TTF hinted)/"*.ttf
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ install -t "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
+}
+
+package_otf-inter-ui() {
install -d "$pkgdir/usr/share/fonts/${pkgname%-fonts}"
- install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 "Inter (TTF hinted)/"*.ttf
- install -d "$pkgdir/usr/share/licenses/${pkgname}"
- install -t "${pkgdir}/usr/share/licenses/${pkgname}" -m644 LICENSE.txt
+ install -t "$pkgdir/usr/share/fonts/${pkgname%-fonts}" -m644 "Inter (OTF)/"*.otf
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ install -t "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE.txt
}
# vim:set ts=2 sw=2 et: