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"
|
||||
7
build/diffutils/package.env
Normal file
7
build/diffutils/package.env
Normal file
@@ -0,0 +1,7 @@
|
||||
export DIFFUTILS_VERSION=3.12
|
||||
|
||||
IFS='.' read -r DIFFUTILS_VERSION_MAJOR DIFFUTILS_VERSION_MINOR <<< $DIFFUTILS_VERSION
|
||||
export DIFFUTILS_VERSION_MAJOR DIFFUTILS_VERSION_MINOR
|
||||
|
||||
export DIFFUTILS_URL=https://mirror.ufs.ac.za/gnu/diffutils/diffutils-$DIFFUTILS_VERSION.tar.xz
|
||||
|
||||
Reference in New Issue
Block a user