mirror of
https://github.com/pygos/build.git
synced 2024-05-08 06:46:13 +02:00
David Oberhollenzer
268c0a605b
This commit renames the release packages so they all produce a single package named "release", creates a preference listing from the PREFERED_PROVIDER array and lets `pkg buildstrategy` decide what package to build. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
30 lines
774 B
Plaintext
Executable file
30 lines
774 B
Plaintext
Executable file
DEPENDS="rootfs"
|
|
SUBPKG="release"
|
|
|
|
build() {
|
|
pkg install -om -r "$PKGBUILDDIR/$OS_RELEASE" -R "$REPODIR" $DEPENDS
|
|
|
|
# copy additional files from this package, subsitute filenames
|
|
local linux_image="$OS_RELEASE/vmlinuz"
|
|
local rootfs_image="$OS_RELEASE/rootfs.img"
|
|
|
|
cp "/usr/share/syslinux/mbr.bin" "$PKGBUILDDIR"
|
|
|
|
for script in install.sh genimage.sh syslinux.cfg; do
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/$script" "$PKGBUILDDIR"
|
|
|
|
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/$script"
|
|
sed -i 's#KERNELFILE#'$linux_image'#g' "$PKGBUILDDIR/$script"
|
|
sed -i 's#VERSIONDIR#'$OS_RELEASE'#g' "$PKGBUILDDIR/$script"
|
|
done
|
|
}
|
|
|
|
deploy() {
|
|
tar czf "$BUILDROOT/release.tar.gz" *
|
|
touch "$PKGDEPLOYDIR/release.files" "$PKGDEPLOYDIR/release.desc"
|
|
}
|
|
|
|
check_update() {
|
|
return
|
|
}
|