mirror of
git://git.2f30.org/morpheus.git
synced 2024-07-01 03:31:21 +00:00
26 lines
465 B
Plaintext
26 lines
465 B
Plaintext
url=$mirror/mpg123-1.18.0.tar.bz2
|
|
|
|
fetch() {
|
|
wget -c $url -O src/mpg123-1.18.0.tar.bz2
|
|
}
|
|
|
|
unpack() {
|
|
cd src
|
|
[ -d mpg123-1.18.0 ] || tar xjf mpg123-1.18.0.tar.bz2
|
|
cd -
|
|
}
|
|
|
|
build() {
|
|
cd src/mpg123-1.18.0
|
|
CC=x86_64-linux-musl-gcc ./configure --prefix="$root" --with-default-audio=tinyalsa \
|
|
CFLAGS="-I$libcroot/include" LDFLAGS="-L$libcroot/lib -static" || return 1
|
|
make || return 1
|
|
cd -
|
|
}
|
|
|
|
install() {
|
|
cd src/mpg123-1.18.0
|
|
make install || return 1
|
|
cd -
|
|
}
|