Files
chromebrew/packages/crew_mvdir.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

31 lines
1.0 KiB
Ruby

require 'package'
class Crew_mvdir < Package
description 'Faster alternative to "rsync --remove-source-files dir1/ dir2/"'
homepage 'https://github.com/chromebrew/crew-mvdir'
version '0.2-2' # Do not use @_ver here, it will break the installer.
license 'GPL-3'
compatibility 'all'
source_url 'https://github.com/chromebrew/crew-mvdir.git'
git_hashtag '0.2'
binary_compression 'tar.zst'
binary_sha256({
aarch64: 'c6738e9eb4d6771c9349cbab24c5a0ff0802919e08931c979558bc0f2c33d719',
armv7l: 'c6738e9eb4d6771c9349cbab24c5a0ff0802919e08931c979558bc0f2c33d719',
i686: '94b576672248ce488bbc8c44f8ff83a5ef862264cd115ec5dea641d7ed2a740a',
x86_64: '7e8c79bded2e1c3d07c8d25c9773a9a8ecb23cd2e20169ff26ec6c09e9eeae41'
})
depends_on 'glibc' # R
def self.build
system "mold -run cc #{CREW_COMMON_FLAGS} crew-mvdir.c -o crew-mvdir"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'crew-mvdir', "#{CREW_DEST_PREFIX}/bin/crew-mvdir", mode: 0o755
end
end