Commit b56bf2b9 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Update tilp from 1.18 to 1.19 (#2497)

* Update tilp from 1.18 to 1.19

* Add pre-built binaries again
parent cc086cf2
require 'package'
class Tilp < Package
description 'TiLP is a linking program for Texas Instruments\' graphing calculators.'
homepage 'http://lpg.ticalc.org/prj_tilp/'
version '1.18'
version '1.19'
source_url 'https://www.ticalc.org/pub/unix/tilp.tar.gz'
source_sha256 '6ba834f7fdbbce9818ccaa864222aed2d1688b210e9ff2c59576d1fde5159cd7'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tilp-1.19-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tilp-1.19-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/tilp-1.19-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tilp-1.19-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'db30e53d1c32e60d62238c7185059692ae43f7514026f965cb4e3f64b8f11c95',
armv7l: 'db30e53d1c32e60d62238c7185059692ae43f7514026f965cb4e3f64b8f11c95',
i686: 'f21fa9762e55d14383c96d9ea25fc22d69aeb26fdaacdbfc7482132d29872f83',
x86_64: '607e83053d566f29a5daf692d01fe5fc66d371e176aa89bc97a4c75cdcbe3c90',
})
depends_on 'libarchive'
......@@ -19,13 +26,16 @@ class Tilp < Package
def self.install
system 'wget http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('install_tilp.sh') ) == '6baf4b79100a938c2c36218d50c30a39c2beec17490784e3623d4aeebe9931ee'
system "PREFIX=#{CREW_PREFIX} SRCDIR=#{CREW_DEST_PREFIX}/share bash install_tilp.sh"
system "sed -i '243iif [ \"x\$LIBDIR\" = \"x\" ]; then' install_tilp.sh"
system "sed -i '250ifi' install_tilp.sh"
system "PREFIX=#{CREW_PREFIX} LIBDIR=#{CREW_LIB_PREFIX} SRCDIR=#{CREW_DEST_PREFIX}/share bash install_tilp.sh"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/include"
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/pkgconfig"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/appdata"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/applications"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/locale"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/locale/de/LC_MESSAGES"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/locale/fr/LC_MESSAGES"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/mime/packages"
system "cp #{CREW_PREFIX}/bin/gfm #{CREW_DEST_PREFIX}/bin"
system "cp #{CREW_PREFIX}/bin/tilp #{CREW_DEST_PREFIX}/bin"
......@@ -43,13 +53,13 @@ class Tilp < Package
system "cp #{CREW_PREFIX}/share/applications/gfm.desktop #{CREW_DEST_PREFIX}/share/applications"
system "cp #{CREW_PREFIX}/share/applications/tilp.desktop #{CREW_DEST_PREFIX}/share/applications"
system "cp -r #{CREW_PREFIX}/share/gfm #{CREW_DEST_PREFIX}/share"
system "cp #{CREW_PREFIX}/share/locale/de/LC_MESSAGES/libticalcs2.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/de/LC_MESSAGES/tilp2.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/gfm.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/libticables2.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/libticalcs2.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/libtifiles2.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/tilp2.mo #{CREW_DEST_PREFIX}/share/locale"
system "cp #{CREW_PREFIX}/share/locale/de/LC_MESSAGES/libticalcs2.mo #{CREW_DEST_PREFIX}/share/locale/de/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/locale/de/LC_MESSAGES/tilp2.mo #{CREW_DEST_PREFIX}/share/locale/de/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/gfm.mo #{CREW_DEST_PREFIX}/share/locale/fr/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/libticables2.mo #{CREW_DEST_PREFIX}/share/locale/fr/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/libticalcs2.mo #{CREW_DEST_PREFIX}/share/locale/fr/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/libtifiles2.mo #{CREW_DEST_PREFIX}/share/locale/fr/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/locale/fr/LC_MESSAGES/tilp2.mo #{CREW_DEST_PREFIX}/share/locale/fr/LC_MESSAGES"
system "cp #{CREW_PREFIX}/share/mime/packages/tilp.xml #{CREW_DEST_PREFIX}/share/mime/packages"
system "cp -r #{CREW_PREFIX}/share/tilp2 #{CREW_DEST_PREFIX}/share"
system "rm -rf #{CREW_DEST_PREFIX}/share/tilp"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment