aspell.rb 1.47 KB
Newer Older
Ed Reel's avatar
Ed Reel committed
1 2 3 4 5
require 'package'

class Aspell < Package
  description 'GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell.'
  homepage 'http://aspell.net/'
6
  version '0.60.8'
saltedcoffii's avatar
saltedcoffii committed
7
  license 'LGPL-2.1'
Ed Reel's avatar
Ed Reel committed
8
  compatibility 'all'
9 10
  source_url 'https://ftpmirror.gnu.org/aspell/aspell-0.60.8.tar.gz'
  source_sha256 'f9b77e515334a751b2e60daab5db23499e26c9209f5e7b7443b05235ad0226f2'
Ed Reel's avatar
Ed Reel committed
11

12
  binary_url ({
13 14 15 16
    aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_armv7l/aspell-0.60.8-chromeos-armv7l.tar.xz',
     armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_armv7l/aspell-0.60.8-chromeos-armv7l.tar.xz',
       i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_i686/aspell-0.60.8-chromeos-i686.tar.xz',
     x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_x86_64/aspell-0.60.8-chromeos-x86_64.tar.xz',
17 18
  })
  binary_sha256 ({
19 20 21 22
    aarch64: 'ec931f1b5a7f23a2eef005a698b2fcda44bcbfe6c9d7c7e3fcc3df91bb284f62',
     armv7l: 'ec931f1b5a7f23a2eef005a698b2fcda44bcbfe6c9d7c7e3fcc3df91bb284f62',
       i686: '9ab3ed9b17c48be746b1d6d594126259ce38f13b162642b49fd37e73e3462f65',
     x86_64: '43dfba23530b07ab4e59c3fe554904d4316646914a77a802009cfef55a01ff34',
23 24
  })

Ed Reel's avatar
Ed Reel committed
25
  def self.build
26 27
    system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
    system "make"
Ed Reel's avatar
Ed Reel committed
28 29 30 31 32 33
  end

  def self.install
    system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
  end
end