Files
chromebrew/packages/agedu.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

34 lines
1.1 KiB
Ruby

require 'package'
class Agedu < Package
description 'Unix utility for tracking down wasted disk space'
homepage 'https://www.chiark.greenend.org.uk/~sgtatham/agedu/'
version '20211129'
license 'Copyright 2008 Simon Tatham. All rights reserved.'
compatibility 'all'
source_url 'https://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-20211129.8cd63c5.tar.gz'
source_sha256 'ceaee592ef21b8cbb254aa7e9c5d22cefab24535e137618a4d0af591eba8339f'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '0cc1186dfe4a6b0079cdfd46c40654dd04e3494aa48a2db4fcfbf7b0f6ef27b5',
armv7l: '0cc1186dfe4a6b0079cdfd46c40654dd04e3494aa48a2db4fcfbf7b0f6ef27b5',
i686: 'd6f0c3671b9dd06835c9ff8f2d73e95c9ff61e14a915d41f9f1161076884cefa',
x86_64: '1cb548694350a3bdd97252f51ee588b272733a2973a8db19fd797ace6a5a8042'
})
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
system "cmake #{CREW_CMAKE_OPTIONS} .."
system 'make'
end
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
end