mirror of
https://github.com/pygos/build.git
synced 2024-12-23 23:50:51 +01:00
Add file package
The file utility needs a version of itself for cross compiling, so we also have to add it to the toolchain. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
e5576005e3
commit
dd394b0970
5 changed files with 56 additions and 1 deletions
|
@ -22,3 +22,4 @@ shadow
|
|||
openrc
|
||||
procps-ng
|
||||
psmisc
|
||||
file
|
||||
|
|
|
@ -25,3 +25,4 @@ shadow
|
|||
openrc
|
||||
procps-ng
|
||||
psmisc
|
||||
file
|
||||
|
|
33
pkg/file/build
Executable file
33
pkg/file/build
Executable file
|
@ -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"
|
||||
}
|
20
tcpkg/file/build
Executable file
20
tcpkg/file/build
Executable file
|
@ -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
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
DEPENDS="gcc2 libgcc musl pkg-config"
|
||||
DEPENDS="gcc2 libgcc musl pkg-config file"
|
||||
|
||||
build() {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue