added diffutils toolchain step
This commit is contained in:
47
build/diffutils/build.bash
Normal file
47
build/diffutils/build.bash
Normal file
@@ -0,0 +1,47 @@
|
||||
. "$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"
|
||||
Reference in New Issue
Block a user