mirror of
https://github.com/pygos/build.git
synced 2024-11-22 19:19:46 +01:00
525b36aa89
- Don't duplicate shared objects, use the ones from the deploy directory when building dependend packages - Add helper function for moving headers, static libraries and pkgconfig data to devdeploy directory Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
29 lines
424 B
Bash
29 lines
424 B
Bash
apply_patches() {
|
|
local PATCH
|
|
|
|
for PATCH in $SCRIPTDIR/$PKGDIR/$PKGNAME/*.patch; do
|
|
patch -p1 < $PATCH
|
|
done
|
|
}
|
|
|
|
split_dev_deploy() {
|
|
local lib f
|
|
|
|
if [ -d "$1/include" ]; then
|
|
mv "$1/include" "$2"
|
|
fi
|
|
|
|
if [ -d "$1/lib/pkgconfig" ]; then
|
|
mkdir -p "$2/lib"
|
|
mv "$1/lib/pkgconfig" "$2/lib"
|
|
fi
|
|
|
|
for f in ${1}/lib/*.a; do
|
|
if [ -f "$f" ]; then
|
|
mkdir -p "$2/lib"
|
|
mv ${1}/lib/*.a "$2/lib"
|
|
fi
|
|
|
|
break
|
|
done
|
|
}
|