Files
chromebrew/packages/librespot.rb
Satadru Pramanik, DO, MPH, MEng 22d986c981 Py updates, fix env variable for timeout, add option to skip remote updates in build_updates script (#10503)
* Update py3_setuptools

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix Agree timeout env variable, add pip updates, fixup build_updated_packages script and add functionality to skip remote update checks.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add documentation for the --skip command.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle compatibility with commas

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle empty conpatibility.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fixup compatibility sections of package files.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Rebuild parted to handle missing binaries, and update build_updated_packages to notice binary_compression and not ask to rebuild if bimaries already exist.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix hash for nconvert.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2024-09-19 22:22:33 -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