Advertisement
Guest User

ttf-ia-writer-fonts-git PKGBUILD

a guest
Jan 2nd, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.27 KB | None | 0 0
  1. # Maintainer: Zirak <zirakertan at gmail dot com>
  2. # Contributor: Stephen Brown II <Stephen dot Brown2 at gmail dot com>
  3. pkgbase=ttf-ia-writer-fonts-git
  4. pkgdesc="TTF iA Writer fonts collection"
  5. pkgname=('ttf-ia-writer-duospace-git' 'ttf-ia-writer-mono-git' 'ttf-ia-writer-duo-git' 'ttf-ia-writer-quattro-git')
  6. pkgver=r38.ba31f88
  7. pkgrel=1
  8. _project_name="iA-Fonts"
  9. url="https://github.com/iaolo/$_project_name"
  10. arch=('any')
  11. license=('custom')
  12. _tarname=iA-Fonts-$_commitid
  13. source=("$_project_name::git+$url.git")
  14. sha256sums=('SKIP')
  15. makedepends=('git')
  16.  
  17.  
  18. pkgver() {
  19.   cd $_project_name
  20.   ( set -o pipefail
  21.     git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
  22.     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  23.   )
  24. }
  25.  
  26.  
  27. package_ttf-ia-writer-duospace-git() {
  28.   pkgdesc="iA Writer Duospace font (TTF)"
  29.   url="https://ia.net/topics/in-search-of-the-perfect-writing-font"
  30.   conflicts=('ttf-ia-writer-duospace')
  31.   provides=('ttf-ia-writer-duospace')
  32.   cd "$_project_name/iA Writer Duospace"
  33.   install -Dt "$pkgdir/usr/share/fonts/TTF" -m644 "TTF (PC)"/*.ttf
  34.   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  35. }
  36.  
  37. package_ttf-ia-writer-mono-git() {
  38.   pkgdesc="iA Writer Mono font"
  39.   url="https://ia.net/writer/blog/a-typographic-christmas"
  40.   cd "$_project_name/iA Writer Mono"
  41.   for variation in "Static" "Variable"; do
  42.     install -Dt "$pkgdir/usr/share/fonts/TTF" -m644 $variation/*.ttf
  43.   done
  44.   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  45. }
  46.  
  47. package_ttf-ia-writer-duo-git() {
  48.   pkgdesc="iA Writer Duo font"
  49.   url="https://ia.net/writer/blog/a-typographic-christmas"
  50.   cd "$_project_name/iA Writer Duo"
  51.   for variation in "Static" "Variable"; do
  52.     install -Dt "$pkgdir/usr/share/fonts/TTF" -m644 $variation/*.ttf
  53.   done
  54.   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  55. }
  56.  
  57. package_ttf-ia-writer-quattro-git() {
  58.   pkgdesc="iA Writer Quattro font"
  59.   url="https://ia.net/writer/blog/a-typographic-christmas"
  60.   cd "$_project_name/iA Writer Quattro"
  61.   for variation in "Static" "Variable"; do
  62.     install -Dt "$pkgdir/usr/share/fonts/TTF" -m644 $variation/*.ttf
  63.   done
  64.   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement