mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
* add compiling constants * fix version and quoting * lib/const.rb: add CREW_MESON_FNO_LTO_OPTIONS * lib/const.rb: fix CREW_COMMON_OPTIONS * crew: add new consts to crew const output * bin/crew: alphabetize consts Co-authored-by: Ed Reel <edreel@gmail.com>
45 lines
1.9 KiB
Ruby
45 lines
1.9 KiB
Ruby
require 'package'
|
|
|
|
class Fuse3 < Package
|
|
description 'The reference implementation of the Linux FUSE (Filesystem in Userspace) interface.'
|
|
homepage 'https://github.com/libfuse/libfuse'
|
|
version '3.10.2'
|
|
license 'GPL-2+'
|
|
compatibility 'all'
|
|
source_url "https://github.com/libfuse/libfuse/releases/download/fuse-#{version}/fuse-#{version}.tar.xz"
|
|
source_sha256 '736e8d1ce65c09cb435fbbb500d53dc75f4d6e93bd325d22adc890951cf56337'
|
|
|
|
binary_url({
|
|
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/fuse3-3.10.2-chromeos-armv7l.tar.xz',
|
|
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/fuse3-3.10.2-chromeos-armv7l.tar.xz',
|
|
i686: 'https://dl.bintray.com/chromebrew/chromebrew/fuse3-3.10.2-chromeos-i686.tar.xz',
|
|
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/fuse3-3.10.2-chromeos-x86_64.tar.xz'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '6e4d623810017d9dc58852f19d251fe52282578d6099ea41eac94d23eb0066e8',
|
|
armv7l: '6e4d623810017d9dc58852f19d251fe52282578d6099ea41eac94d23eb0066e8',
|
|
i686: 'd202035312895ee3bd9d260775cabba729d67996b3a3c1ce3786c83120515efa',
|
|
x86_64: 'c82701ac8f799f7716963363ab44b8a7984d580eff3ecd1d54ddbc589e08c907'
|
|
})
|
|
|
|
def self.build
|
|
system "pip install --upgrade --no-warn-script-location pytest --prefix #{CREW_PREFIX}"
|
|
system "meson #{CREW_MESON_OPTIONS} \
|
|
-Ddisable-mtab=true \
|
|
-Dudevrulesdir=#{CREW_PREFIX}/etc/udev/rules.d/ \
|
|
-Dexamples=true \
|
|
-Duseroot=false \
|
|
builddir"
|
|
system 'meson configure builddir'
|
|
system 'ninja -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/init.d/"
|
|
FileUtils.mv "#{CREW_DEST_DIR}/etc/init.d/fuse3", "#{CREW_DEST_PREFIX}/etc/init.d/fuse3"
|
|
FileUtils.mv "#{CREW_DEST_PREFIX}/sbin/mount.fuse3", "#{CREW_DEST_PREFIX}/bin/mount.fuse3"
|
|
system 'pip uninstall -y pytest'
|
|
end
|
|
end
|