mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
initial commit
This commit is contained in:
commit
adeb701f02
4 changed files with 71 additions and 0 deletions
17
.SRCINFO
Normal file
17
.SRCINFO
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
pkgbase = otf-apple-sf-compact
|
||||
pkgdesc = Apples San Francisco typeface family. watchOS system font.
|
||||
pkgver = 17.0d12e1
|
||||
pkgrel = 1
|
||||
url = https://developer.apple.com/fonts/
|
||||
arch = any
|
||||
license = custom:apple-restricted-font
|
||||
makedepends = texlive-bin
|
||||
makedepends = p7zip
|
||||
source = 17.0d12e1-SF-Compact.dmg::https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg
|
||||
source = license.awk
|
||||
source = version.awk
|
||||
sha256sums = 487647302a6a96b2c7ff77046c8727660e250d0625efae5b54edefd68d43ea18
|
||||
sha256sums = cd45a6edaa3829837b090a5a18d3c906816931e7a779b33b6ada23b49b5a5889
|
||||
sha256sums = 55a4e9e108e50b07481044fad445636e502f2d95d7e8964e1d4cda3e9618b198
|
||||
|
||||
pkgname = otf-apple-sf-compact
|
||||
44
PKGBUILD
Normal file
44
PKGBUILD
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Maintainer: Leonard Janis König <ljrk@ljrk.org>
|
||||
|
||||
pkgname='otf-apple-sf-compact'
|
||||
pkgver=17.0d12e1
|
||||
pkgrel=1
|
||||
pkgdesc='Apples San Francisco typeface family. watchOS system font.'
|
||||
arch=('any')
|
||||
url='https://developer.apple.com/fonts/'
|
||||
license=('custom:apple-restricted-font')
|
||||
_dlfile='SF-Compact.dmg'
|
||||
_file=${pkgver}-${_dlfile}
|
||||
source=("$_file::https://devimages-cdn.apple.com/design/resources/download/$_dlfile"
|
||||
'license.awk'
|
||||
'version.awk')
|
||||
sha256sums=('487647302a6a96b2c7ff77046c8727660e250d0625efae5b54edefd68d43ea18'
|
||||
'cd45a6edaa3829837b090a5a18d3c906816931e7a779b33b6ada23b49b5a5889'
|
||||
'55a4e9e108e50b07481044fad445636e502f2d95d7e8964e1d4cda3e9618b198')
|
||||
makedepends=('texlive-bin' 'p7zip')
|
||||
|
||||
prepare() {
|
||||
cd ${srcdir}
|
||||
# These are dmg images, xar and cpio archives. Just use 7z.
|
||||
7z x -y "$_file"
|
||||
7z x -y 'SFCompactFonts/SF Compact Fonts.pkg'
|
||||
7z x -y 'Payload~'
|
||||
|
||||
otfinfo -i Library/Fonts/SF-Compact-Display-Regular.otf | \
|
||||
awk -f license.awk > LICENSE
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
cd ${srcdir}
|
||||
otfinfo -i Library/Fonts/SF-Compact-Display-Regular.otf | \
|
||||
awk -f version.awk
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm655 "${srcdir}"/Library/Fonts/*.otf \
|
||||
-t "${pkgdir}/usr/share/fonts/OTF/"
|
||||
install -Dm655 "${srcdir}"/Library/Fonts/*.ttf \
|
||||
-t "${pkgdir}/usr/share/fonts/TTF/"
|
||||
install -Dm644 LICENSE \
|
||||
"${pkgdir}"/usr/share/licenses/${pkgname}/AppleFontLicense
|
||||
}
|
||||
7
license.awk
Executable file
7
license.awk
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#! /usr/bin/env -S awk -f
|
||||
|
||||
/License Description:.*/ { inlicense = 1;
|
||||
for (i = 3; i <= NF; i++) $(i-2)=$i
|
||||
}
|
||||
/Vendor ID:.*/ { inlicense = 0; }
|
||||
{ if (inlicense) print $0 }
|
||||
3
version.awk
Executable file
3
version.awk
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#! /usr/bin/env -S awk -f
|
||||
|
||||
/Version:.*/ { print $3 }
|
||||
Loading…
Add table
Reference in a new issue