1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 07:27:10 +01:00

Cleanup: move some utility functions to package skeleton

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2020-04-12 03:23:11 +02:00
parent fa4eff263b
commit a646707dc0
2 changed files with 16 additions and 16 deletions

View file

@ -1,3 +1,19 @@
apply_patches() {
local PATCH
for PATCH in $SCRIPTDIR/pkg/$PKGNAME/*.patch; do
if [ -f $PATCH ]; then
patch -p1 < $PATCH
fi
done
}
pkg_scan_dir() {
find -H "$1" -type d -printf "dir \"%p\" 0%m 0 0\\n" | tail -n +2
find -H "$1" -type l -printf "slink \"%p\" 0%m 0 0 %l\\n"
find -H "$1" -type f -printf "file \"%p\" 0%m 0 0\\n"
}
prepare() {
apply_patches
}

View file

@ -1,13 +1,3 @@
apply_patches() {
local PATCH
for PATCH in $SCRIPTDIR/pkg/$PKGNAME/*.patch; do
if [ -f $PATCH ]; then
patch -p1 < $PATCH
fi
done
}
strip_files() {
local f
@ -53,9 +43,3 @@ unfuck_libtool() {
sed -i "s#libdir='\$install_libdir'#libdir='$libdir'#g" "$PKGBUILDDIR/libtool"
}
pkg_scan_dir() {
find -H "$1" -type d -printf "dir \"%p\" 0%m 0 0\\n" | tail -n +2
find -H "$1" -type l -printf "slink \"%p\" 0%m 0 0 %l\\n"
find -H "$1" -type f -printf "file \"%p\" 0%m 0 0\\n"
}