font-sf-mono: new ptrcport
This commit is contained in:
parent
c8c60aeec5
commit
1d25355f62
1 changed files with 31 additions and 0 deletions
31
font-sf-mono/APKBUILD
Normal file
31
font-sf-mono/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||
pkgname=font-sf-mono
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="SF Mono font by Apple"
|
||||
url="https://developer.apple.com/fonts/"
|
||||
arch="aarch64 x86_64"
|
||||
license="proprietary"
|
||||
makedepends="cpio p7zip"
|
||||
source="https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
||||
builddir="$srcdir/SFMonoFonts/Library/Fonts"
|
||||
options="!check" # is font
|
||||
|
||||
unpack() {
|
||||
cd "$srcdir"
|
||||
7z x -y SF-Mono.dmg >/dev/null
|
||||
|
||||
cd SFMonoFonts
|
||||
7z x -y "SF Mono Fonts.pkg" >/dev/null
|
||||
|
||||
cpio -idmv --no-absolute-filenames < "Payload~"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 *.otf -t "$pkgdir"/usr/share/fonts/sf-mono
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
748667aba9a465b8d3f07db431ac2ed50911245810cd9ff9c0c018109e6d1fb2671e1e28b7cfa9464729e2ee3a6926e4bce405fad5464ca831ee062f988296dc SF-Mono.dmg
|
||||
"
|
Loading…
Reference in a new issue