# Description: Apple New York fonts # URL: https://developer.apple.com/fonts/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: fontforge p7zip name=fonts-apple-ny version=wwdc24 release=1 source=(https://devimages-cdn.apple.com/design/resources/download/NY.dmg) build() { 7z x $SRC/NY.dmg mkdir -p $PKG/usr/share/fonts/apple cd $SRC/NYFonts 7z x NY\ Fonts.pkg 7z x Payload~ cd Library/Fonts cp -a *.otf $PKG/usr/share/fonts/apple #These are a bit problematic fontforge -lang=ff -c 'Open("NewYork.ttf(NewYork-Regular)"); Generate("NewYork-Regular.ttf"); Close();' fontforge -lang=ff -c 'Open("NewYorkItalic.ttf(NewYork-RegularItalic)"); Generate("NewYork-RegularItalic.ttf"); Close();' cp -a NewYork-Regular.ttf NewYork-RegularItalic.ttf $PKG/usr/share/fonts/apple }