1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 12:20:42 +01:00
build/pkg/release-alix/build

34 lines
768 B
Text
Raw Normal View History

DEPENDS="rootfs"
build() {
local SOURCE="$1"
local DEPLOY="$2"
pkg install -om -r "$PKGDEPLOYDIR/$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() {
local SOURCE="$1"
local DEPLOY="$2"
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
}
check_update() {
return
}