mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 15:13:56 -05:00
32 lines
1.1 KiB
Ruby
32 lines
1.1 KiB
Ruby
# Adapted from Arch Linux adobe-source-code-pro-fonts PKGBUILD at:
|
|
# https://github.com/archlinux/svntogit-packages/raw/packages/adobe-source-code-pro-fonts/trunk/PKGBUILD
|
|
|
|
require 'package'
|
|
|
|
class Adobe_source_code_pro_fonts < Package
|
|
description 'Monospaced font family for user interface and coding environments'
|
|
homepage 'https://adobe-fonts.github.io/source-code-pro/'
|
|
version '20210115'
|
|
license 'OFL-1.1'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://github.com/adobe-fonts/source-code-pro.git'
|
|
git_hashtag '2.038R-ro/1.058R-it/1.018R-VAR'
|
|
binary_compression 'tpxz'
|
|
|
|
binary_sha256({
|
|
aarch64: '22858b9d32b3911f42ce9d38d762a0bda58500dc936bec1a6d15600c3918c27b',
|
|
armv7l: '22858b9d32b3911f42ce9d38d762a0bda58500dc936bec1a6d15600c3918c27b',
|
|
x86_64: '572b83ce1c1370f590800a253b5b69dac29953f3dd29e5177ac658894987d265'
|
|
})
|
|
|
|
depends_on 'fontconfig'
|
|
|
|
def self.install
|
|
system "install -Dt #{CREW_DEST_PREFIX}/share/fonts/adobe-source-code-pro-fonts -m644 OTF/*.otf VAR/*.otf"
|
|
end
|
|
|
|
def self.postinstall
|
|
system 'fc-cache -f'
|
|
end
|
|
end
|