Skip to content

Instantly share code, notes, and snippets.

@maisieccino
Last active January 19, 2016 15:05
Show Gist options
  • Save maisieccino/42b12dd216e9d2bb7c47 to your computer and use it in GitHub Desktop.
Save maisieccino/42b12dd216e9d2bb7c47 to your computer and use it in GitHub Desktop.
ttf-sanfrancisco
pkgname=ttf-sanfrancisco
pkgver=1.0
pkgrel=1
pkgdesc="San Francisco, the system font for OSX, iOS, watchOS and tvOS."
arch=(any)
depends=(fontconfig xorg-font-utils)
source=()
install=$pkgname.install
package() {
cd $srcdir
find -delete
curl -LsH 'Accept-encoding: gzip' https://api.github.com/repos/supermarin/YosemiteSanFranciscoFont/tarball | tar -xz
cp -R */* ./
rm -Rf supermarin-*
install -d $pkgdir/usr/share/fonts/TTF
install -Dm644 System\ San*.ttf $pkgdir/usr/share/fonts/TTF
}
post_install() {
fc-cache -s
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment