blob: 115c07bc61a0d0f2168c79aacf8abaedc42828b5 (
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
32
33
|
# Maintainer: Nico <d3sox at protonmail dot com>
# Contributor: Harry Beadle <harrybeadle@protonmail.com>
pkgname=otf-san-francisco-mono
pkgver=1
pkgrel=15
pkgdesc='Monospaced variant of San Francisco. Sourced directly from Apple.'
arch=('any')
url='https://developer.apple.com/fonts/'
license=('custom')
makedepends=('p7zip')
source=("SF-Mono-$pkgrel.dmg::https://developer.apple.com/design/downloads/SF-Mono.dmg")
sha256sums=('6d4a0b78e3aacd06f913f642cead1c7db4af34ed48856d7171a2e0b55d9a7945')
prepare() {
# remove previous files
rm -rf SFMonoFonts
# extract dmg
7z x "SF-Mono-$pkgrel.dmg"
# extract pkg
bsdtar xvPf "SFMonoFonts/SF Mono Fonts.pkg"
bsdtar xvPf "SFMonoFonts.pkg/Payload"
}
package() {
# 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 Resources/English.lproj/License.rtf "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rtf"
}
|