Commit a6d91379 authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #3871 from uberhacker/add-alsa_tools-package

Add alsa_tools package and fltk dependency
parents 545f3495 724fe3a0
require 'package'
class Alsa_tools < Package
description 'The Advanced Linux Sound Architecture (ALSA) - tools'
homepage 'https://github.com/alsa-project/alsa-tools'
version '1.2.2'
source_url 'https://github.com/alsa-project/alsa-tools/archive/v1.2.2.tar.gz'
source_sha256 '7242cfb3493461b2a28c9c3a6a69dbc2e9ee236a5dc46400cbb0d1d87c27b453'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/alsa_tools-1.2.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/alsa_tools-1.2.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/alsa_tools-1.2.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/alsa_tools-1.2.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '13e8a8e05816e7b33369a3dfa62805d74a31899aac172f2d895e181c002e163c',
armv7l: '13e8a8e05816e7b33369a3dfa62805d74a31899aac172f2d895e181c002e163c',
i686: '1ca6fa11e786e0d277ff15532de6b58f9a1bba5198163fc7d773ecddbabe4574',
x86_64: '9078e54a91c60bb12d5f8087239cf21b24b033f04991e095f22502d663a5d77c',
})
depends_on 'alsa_lib'
depends_on 'fltk'
depends_on 'gtk2'
def self.patch
# Make sure automake can be found.
system "find -name gitcompile -exec sed -i 's,/usr/local/share/automake,#{CREW_PREFIX}/share/automake-1.16,' {} +"
# Take out things that won't build.
system "sed -i 's,ld10k1 qlo10k1,,' Makefile"
system "sed -i 's,usx2yloader,,' Makefile"
system "sed -i 's,hdspmixer,,' Makefile" if ARCH != 'x86_64'
end
def self.build
system "GITCOMPILE_ARGS='--prefix=#{CREW_PREFIX}' make all"
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
require 'package'
class Fltk < Package
description 'Fast Light Toolkit or FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit'
homepage 'https://www.fltk.org/'
version '1.3.5'
source_url 'https://www.fltk.org/pub/fltk/1.3.5/fltk-1.3.5-source.tar.bz2'
source_sha256 '2933c72400f9e7c0f4c3a81a1ce98bc9582b2a3edc44b8597ccd26e240e32c3c'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/fltk-1.3.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/fltk-1.3.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/fltk-1.3.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/fltk-1.3.5-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '98d7e8f6846f357be4b7600b016fe4f1800c8e7e08d1846227c674fa7e0a7a89',
armv7l: '98d7e8f6846f357be4b7600b016fe4f1800c8e7e08d1846227c674fa7e0a7a89',
i686: 'ee29eb618e5f09f1486e56061c5b82d1a331dba26eb0e0329020641261d6ac92',
x86_64: '95fabef98ee5b2fc9c7ba32ea8f62bf0193322b791f8048d4ee003d76b7c8e83',
})
depends_on 'sommelier'
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
system 'cmake',
'-DCMAKE_BUILD_TYPE=Release',
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
'-DOPTION_BUILD_EXAMPLES=OFF',
'..'
system 'make'
end
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment