serenity/Ports/bzip2/package.sh
Gunnar Beutner e0363a612d Ports: Fix ports when building with ccache
When building with ccache these ports failed to build because
CC contains more than one word.

The ncurses port also doesn't like how ccache preprocesses
files. This patch fixes that.
2021-04-19 18:27:09 +02:00

16 lines
407 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=bzip2
version=1.0.8
files="https://sourceware.org/pub/bzip2/bzip2-${version}.tar.gz bzip2-${version}.tar.gz 67e051268d0c475ea773822f7500d0e5"
auth_type=md5
makeopts=bzip2
installopts="PREFIX=${SERENITY_BUILD_DIR}/Root/usr/local"
build() {
run make CC="${CC}" $makeopts bzip2
}
install() {
run make DESTDIR=$DESTDIR CC="${CC}" $installopts install
}