DEPENDS="rootfs boot-rpi3" build() { local SOURCE="$1" local DEPLOY="$2" pkg install -om -r "$PKGBUILDDIR/boot" -R "$REPODIR" $DEPENDS # copy files from this package cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$PKGBUILDDIR/boot" cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR" cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$PKGBUILDDIR" # substitute file names in scripts mkdir -p "$PKGBUILDDIR/boot/$OS_RELEASE" mv "$PKGBUILDDIR/boot/rootfs.img" "$PKGBUILDDIR/boot/$OS_RELEASE" mv "$PKGBUILDDIR/boot/vmlinuz" "$PKGBUILDDIR/boot/$OS_RELEASE" local rootfs_image="$OS_RELEASE/rootfs.img" local kernel_image="$OS_RELEASE/vmlinuz" sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/boot/cmdline.txt" sed -i 's#KERNELFILE#'$kernel_image'#g' "$PKGBUILDDIR/boot/config.txt" } deploy() { local SOURCE="$1" local DEPLOY="$2" tar czf "$DEPLOY/$PKGNAME.tar.gz" * touch "$2/$PKGNAME.files" cat > "$2/$PKGNAME.desc" <<_EOF name $PKGNAME _EOF } check_update() { return }