mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
90b2586ea4
Every package now has or generates a rootfs_files.txt containing a list of files that should be packed into the rootfs, their permissions and their owner. This gives us fine grained controll over the owners and permissions of the rootfs files (by generating a squashfs pseudo file). In subsequent steps, this allows us to remove the deploy/devdeploy split and actually simplifiy most of the build scripts. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
42 lines
No EOL
988 B
Text
Executable file
42 lines
No EOL
988 B
Text
Executable file
VERSION="1.0.6"
|
|
SRCDIR="bzip2-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
URL="http://www.bzip.org/1.0.6/"
|
|
SHA256SUM="a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
|
|
DEPENDS="toolchain"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
|
|
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
local DEVDEPLOY="$3"
|
|
|
|
make PREFIX="$DEPLOY" install
|
|
|
|
strip_files ${DEPLOY}/bin/*
|
|
|
|
rm ${DEPLOY}/bin/{bzegrep,bzfgrep,bzless,bzcmp}
|
|
|
|
ln -s "/bin/bzgrep" "$DEPLOY/bin/bzegrep"
|
|
ln -s "/bin/bzgrep" "$DEPLOY/bin/bzfgrep"
|
|
ln -s "/bin/bzmore" "$DEPLOY/bin/bzless"
|
|
ln -s "/bin/bzdiff" "$DEPLOY/bin/bzcmp"
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
|
|
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "$URL" | grep -o "bzip2-[0-9.]*tar.gz" | \
|
|
sed 's/bzip2-//g' | sed 's/.tar.gz//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
} |