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