diff --git a/cfg/alix/ROOTFS b/cfg/alix/ROOTFS index 9536cc8..11e33e4 100644 --- a/cfg/alix/ROOTFS +++ b/cfg/alix/ROOTFS @@ -22,3 +22,4 @@ shadow openrc procps-ng psmisc +file diff --git a/cfg/rpi3/ROOTFS b/cfg/rpi3/ROOTFS index 5a8a61b..b9b552e 100644 --- a/cfg/rpi3/ROOTFS +++ b/cfg/rpi3/ROOTFS @@ -25,3 +25,4 @@ shadow openrc procps-ng psmisc +file diff --git a/pkg/file/build b/pkg/file/build new file mode 100755 index 0000000..506faab --- /dev/null +++ b/pkg/file/build @@ -0,0 +1,33 @@ +VERSION="5.32" +SRCDIR="file-${VERSION}" +TARBALL="${SRCDIR}.tar.gz" +URL="ftp://ftp.astron.com/pub/file" +SHA256SUM="8639dc4d1b21e232285cd483604afc4a6ee810710e00e579dbe9591681722b50" +DEPENDS="zlib" + +prepare() { + return +} + +build() { + local INPUT="$1" + local OUTPUT="$2" + + $INPUT/configure --prefix="" --host="$TARGET" --disable-static + + make -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local BUILD="$2" + local DEPLOY="$3" + local DEVDEPLOY="$4" + + make DESTDIR="$DEPLOY" install-strip + + mv "$DEPLOY/include" "$DEVDEPLOY" + rm -r "$DEPLOY/share" + rm -r ${DEPLOY}/lib/*.la + cp -r "$DEPLOY/lib" "$DEVDEPLOY" +} diff --git a/tcpkg/file/build b/tcpkg/file/build new file mode 100755 index 0000000..7d0d3f4 --- /dev/null +++ b/tcpkg/file/build @@ -0,0 +1,20 @@ +source "$SCRIPTDIR/pkg/file/build" +DEPENDS="" + +prepare() { + return +} + +build() { + local SOURCE="$1" + local BUILD="$2" + + $SOURCE/configure --prefix="$TCDIR" --disable-static \ + --build="$HOSTTUPLE" --host="$HOSTTUPLE" + + make -j $NUMJOBS +} + +deploy() { + make install +} diff --git a/tcpkg/toolchain/build b/tcpkg/toolchain/build index df4b143..9027f61 100755 --- a/tcpkg/toolchain/build +++ b/tcpkg/toolchain/build @@ -1,4 +1,4 @@ -DEPENDS="gcc2 libgcc musl pkg-config" +DEPENDS="gcc2 libgcc musl pkg-config file" build() { return