diff options
author | xiota | 2024-01-01 04:42:16 -0800 |
---|---|---|
committer | xiota | 2024-01-01 04:42:16 -0800 |
commit | b253e7c668e636d1c68ac08dba08c2a256187dc7 (patch) | |
tree | 9d2c82f1df9e5063e4789ad2c9fc84c363522f09 /PKGBUILD | |
parent | f901bcaa5ce38b9eed93f5c8985051b7dfd3367e (diff) | |
download | aur-otf-stix.tar.gz |
2.13.b171
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 67 |
1 files changed, 52 insertions, 15 deletions
@@ -1,19 +1,56 @@ -pkgname=otf-stix -pkgver=2.13 +# Maintainer: + +## useful links +# http://www.stixfonts.org +# https://github.com/stipub/stixfonts + +# basic info +_fontname="stix" +_pkgname="otf-$_fontname" +pkgbase="$_pkgname" +pkgname=( + otf-stix + ttf-stix-variable +) +pkgver=2.13.b171 pkgrel=1 -pkgdesc="An OpenType font with math support, designed for scientific and engineering printing" +pkgdesc="OpenType Unicode fonts for Scientific, Technical, and Mathematical texts" +url="https://github.com/stipub/stixfonts" +license=('OFL-1.1-RFN') arch=('any') -url="http://www.stixfonts.org" -license=('custom:OFL') -source=( - "static_otf-$pkgver.zip::https://github.com/stipub/stixfonts/raw/v$pkgver/zipfiles/static_otf.zip" - "OFL-$pkgver.txt::https://github.com/stipub/stixfonts/raw/v$pkgver/OFL.txt" -) -sha256sums=('58f759a766ba4fa3d4d112b190e8119afd64984aaa31d5dc273a8ce46223cc29' - 'bec17cee6412788db45fd2644b301afbc99cc5d372ddd3345dc4a7bfdefb9f04') -package() { - install -d "$pkgdir/usr/share/fonts/OTF" - install -m644 static_otf/*.otf "$pkgdir/usr/share/fonts/OTF/" - install -Dm644 "OFL-$pkgver.txt" "$pkgdir/usr/share/licenses/$pkgname/OFL.txt" +# main package +_main_package() { + _pkgsrc="" + _tag="v2.13b171" + _pkgver=$(pkgver) + source=( + "$_fontname-otf-static-$_pkgver.zip"::"$url/raw/$_tag/zipfiles/static_otf.zip" + "$_fontname-ttf-variable-$_pkgver.zip"::"$url/raw/$_tag/zipfiles/variable_ttf.zip" + "$_fontname-license-$_pkgver.txt"::"$url/raw/$_tag/OFL.txt" + ) + sha256sums=( + 'b5ec34636e117ec97e71e6b89ad2718618184329bbb3d3be5d1e3b0f8ed52789' + 'd567c6c9a899665744e08391daeee1adbf039e109b10309855321b6c1a8f8acd' + '0c8825913b60d858aacdb33c4ca6660a7d64b0d6464702efbb19313f5765861a' + ) +} + +# common functions +pkgver() { + local _pkgver=$(sed -E 's&^[^0-9]+&&; s&([a-z])&.\1&' <<< $_tag) + echo "${_pkgver:?}" } + +package_otf-stix() { + install -Dm644 static_otf/*.otf -t "$pkgdir/usr/share/fonts/${pkgname%-git}/" + install -Dm644 "$_fontname-license-$_pkgver.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_ttf-stix-variable() { + install -Dm644 variable_ttf/*.ttf -t "$pkgdir/usr/share/fonts/${pkgname%-git}/" + install -Dm644 "$_fontname-license-$_pkgver.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# execute +_main_package |