1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-25 06:08:32 +00:00
morpheus/pkgs/tinyalsa

27 lines
432 B
Plaintext
Raw Normal View History

2014-02-19 15:41:04 +00:00
url=$mirror/tinyalsa.tar.gz
fetch() {
wget -c $url -O src/tinyalsa.tar.gz
}
unpack() {
cd src
[ -d tinyalsa ] || tar xzf tinyalsa.tar.gz
cd -
}
build() {
cd src/tinyalsa
2014-02-19 16:18:52 +00:00
make clean 2>/dev/null
2014-02-19 15:55:23 +00:00
make CC=x86_64-linux-musl-gcc LDFLAGS="-static" || return 1
2014-02-19 15:41:04 +00:00
cd -
}
install() {
cd src/tinyalsa
cp tinycap tinymix tinypcminfo tinyplay "$root/bin"
cp libtinyalsa.a "$root/lib"
2014-02-19 15:45:15 +00:00
cp -r include/tinyalsa "$root/include"
2014-02-19 15:41:04 +00:00
cd -
}