Files
chromebrew/packages/librespot.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
991 B
Ruby

require 'package'
class Librespot < Package
description 'Open Source Spotify connect library'
homepage 'https://github.com/librespot-org/librespot'
version '0.1.3'
license 'MIT'
compatibility 'aarch64,armv7l,x86_64'
source_url 'https://github.com/librespot-org/librespot/archive/v0.1.3.tar.gz'
source_sha256 '2d28a63c6dda08ecbc1245c7cfe34c9b3b29e8c5304f4aa8b65aedb899056b25'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'ecfcbfaf8f71b1a4442535a0dc97e2d3db4dd5c67c7200deb040da74db56c099',
armv7l: 'ecfcbfaf8f71b1a4442535a0dc97e2d3db4dd5c67c7200deb040da74db56c099',
x86_64: '0ba9038b2e38df1d684328050885b050959ae10df0028dc390c442da647d4228'
})
depends_on 'rust' => :build
depends_on 'alsa_lib'
depends_on 'alsa_utils'
def self.build
system 'cargo build --release --no-default-features --features "alsa-backend"'
end
def self.install
system "install -Dm755 target/release/librespot #{CREW_DEST_PREFIX}/bin/librespot"
end
end