mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* 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)
39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Ffmpegthumbnailer < Package
|
|
description 'FFmpegthumbnailer is a lightweight video thumbnailer that can be used by file managers to create thumbnails for your video files.'
|
|
homepage 'https://github.com/dirkvdb/ffmpegthumbnailer'
|
|
version '2.2.3-e0bf01d-1'
|
|
license 'GPL-2'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url 'https://github.com/dirkvdb/ffmpegthumbnailer.git'
|
|
git_hashtag 'e0bf01d97e0261219b06d1e560e923354949b93e'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'c3ba003434e1a2f7ccbeaf02f71857b16a037a2c47bfb19a2b8bf05d1900357f',
|
|
armv7l: 'c3ba003434e1a2f7ccbeaf02f71857b16a037a2c47bfb19a2b8bf05d1900357f',
|
|
x86_64: '52d11863520762477c41f80ac962e0fd361a31891da7f106af31ef6cbe9aef34'
|
|
})
|
|
|
|
depends_on 'ffmpeg' # R
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'libjpeg' # R
|
|
depends_on 'libpng' # R
|
|
depends_on 'zlibpkg' # R
|
|
|
|
def self.build
|
|
system "mold -run cmake -B builddir #{CREW_CMAKE_OPTIONS} \
|
|
-DENABLE_GIO=ON \
|
|
-DENABLE_THUMBNAILER=ON \
|
|
-Wno-dev \
|
|
-G Ninja"
|
|
system "#{CREW_NINJA} -C builddir"
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
|
|
end
|
|
end
|