47 lines
636 B
Bash
47 lines
636 B
Bash
. "$PROJECTDIR/build/diffutils/package.env"
|
|
|
|
fetch $DIFFUTILS_URL
|
|
|
|
|
|
cd "$SOURCES" && tar xf diffutils-$DIFFUTILS_VERSION.tar.xz && cd diffutils-$DIFFUTILS_VERSION
|
|
|
|
|
|
bootstrap() {
|
|
echo bootstrap
|
|
}
|
|
|
|
toolchain() {
|
|
./configure \
|
|
--prefix=/usr \
|
|
--host=$TARGET \
|
|
gl_cv_func_strcasecmp_works=y \
|
|
--build=$(./build-aux/config.guess) > /dev/null
|
|
|
|
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
|
|
}
|
|
|
|
setup() {
|
|
echo setup
|
|
}
|
|
|
|
final() {
|
|
echo final
|
|
}
|
|
|
|
case $1 in
|
|
bootstrap)
|
|
bootstrap
|
|
;;
|
|
toolchain)
|
|
toolchain
|
|
;;
|
|
setup)
|
|
setup
|
|
;;
|
|
final)
|
|
final
|
|
;;
|
|
esac
|
|
|
|
|
|
rm -rf "$SOURCES/diffutils-$DIFFUTILS_VERSION" |