mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Add msttcorefonts package
This commit is contained in:
32
packages/msttcorefonts.rb
Normal file
32
packages/msttcorefonts.rb
Normal file
@@ -0,0 +1,32 @@
|
||||
require 'package'
|
||||
|
||||
class Msttcorefonts < Package
|
||||
description "An easy way to install Microsoft's TrueType core fonts on Linux"
|
||||
homepage 'http://corefonts.sourceforge.net/'
|
||||
version '3.6'
|
||||
source_url 'http://http.debian.net/debian/pool/contrib/m/msttcorefonts/msttcorefonts_3.6.tar.gz'
|
||||
source_sha256 'c23a2c519acad44fb65dfdd5b6f7de7b351ec15394df52cc744e3c6deb51d42f'
|
||||
|
||||
binary_url ({
|
||||
})
|
||||
binary_sha256 ({
|
||||
})
|
||||
|
||||
depends_on 'cabextract'
|
||||
|
||||
def self.build
|
||||
system "sed -i '61icp cabfiles.sha256sums \$SCRATCHDIR/' update-ms-fonts"
|
||||
system "sed -i 's,/var/lib/msttcorefonts/,,g' update-ms-fonts"
|
||||
system "sed -i 's,/usr/share,#{CREW_DEST_PREFIX}/share,g' update-ms-fonts"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "./update-ms-fonts"
|
||||
end
|
||||
|
||||
def self.postinstall
|
||||
puts
|
||||
puts "Fonts are installed in #{CREW_PREFIX}/share/fonts/truetype/msttcorefonts.".lightblue
|
||||
puts
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user