summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abb03c7f3e7153e428fd2dc2fde59e65fac6e825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Nico <d3sox at protonmail dot com>
# Contributor: Jesús Castro <x51v4n@gmail.com>

pkgname=otf-san-francisco
pkgver=2
pkgrel=2
epoch=1
pkgdesc="The system font for macOS, iOS, watchOS, and tvOS"
arch=('any')
license=('custom')
url="https://developer.apple.com/fonts/"
depends=('fontconfig')
source=(SFPro-1.0.zip::https://developer.apple.com/fonts/downloads/SFPro.zip)
sha512sums=('7001638787c7580a7cd1c40d92af8c680187ebfad832fe0ec4e97ccc15d925a9928e97b1e5bfd39db1789eb955bf0fcbb954a990b2ef2b56b41da7a13a6bd6cd')

package() {
  cd "$srcdir/SFPro"

  mkdir -p pkg
  bsdtar xvPf 'San Francisco Pro.pkg' || true
  bsdtar xvPf 'San Francisco Pro.pkg/Payload'

  # install fonts
  install -d "$pkgdir/usr/share/fonts/apple"
  install -m644 Library/Fonts/*.otf "$pkgdir/usr/share/fonts/apple"

  # install license
  install -d "$pkgdir/usr/share/licenses/$pkgname"
  install -m644 'SF Pro Font License.rtf' "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rtf"
}