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

39 lines
989 B
Ruby

require 'package'
class Kupfer < Package
description 'a smart, quick launcher'
homepage 'https://kupferlauncher.github.io/'
version 'v321'
license 'GPL-3.0'
compatibility 'x86_64'
source_url 'https://github.com/kupferlauncher/kupfer.git'
git_hashtag version
binary_compression 'tar.zst'
depends_on 'desktop_file_utils'
depends_on 'shared_mime_info'
depends_on 'py3_dbus_python'
depends_on 'py3_pyxdg'
depends_on 'py3_docutils' => :build
depends_on 'python3' => :build
depends_on 'sommelier'
binary_sha256({
x86_64: '453db640d22278269b89a31f07543abba98b06bc026665314dbe26ba56b7d542'
})
def self.build
system "./waf configure --prefix=#{CREW_PREFIX}"
system "./waf -j#{CREW_NPROC}"
end
def self.install
system './waf', "--destdir=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
system "update-desktop-database #{CREW_PREFIX}/share/applications"
system "update-mime-database #{CREW_PREFIX}/share/mime"
end
end