1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-09 07:16:13 +02:00
build/pkg/release-alix/build
David Oberhollenzer 2184f4dae7 cleanup: make $BUILDROOT point to actual product output directory
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-06 16:12:08 +01:00

33 lines
794 B
Plaintext
Executable file

DEPENDS="rootfs"
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/$PKGNAME.tar.gz" *
touch "$PKGDEPLOYDIR/$PKGNAME.files"
cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF
name $PKGNAME
_EOF
}
check_update() {
return
}