2019-03-31 15:13:18 +02:00
|
|
|
DEPENDS="rootfs linux"
|
2019-03-31 14:18:57 +02:00
|
|
|
SUBPKG="release"
|
2018-01-24 12:52:41 +01:00
|
|
|
|
2018-01-16 23:07:29 +01:00
|
|
|
build() {
|
2019-06-10 15:16:41 +02:00
|
|
|
pkg install -om -r "$PKGBUILDDIR/$OS_RELEASE" linux
|
2019-06-08 18:04:39 +02:00
|
|
|
|
|
|
|
pkg dump -l pkg -r "$TCDIR/$TARGET" "$REPODIR/rootfs.pkg" \
|
|
|
|
> "$PKGBUILDDIR/files.txt"
|
|
|
|
|
|
|
|
gensquashfs -F "$PKGBUILDDIR/files.txt" "$OS_RELEASE/rootfs.img"
|
|
|
|
rm "$PKGBUILDDIR/files.txt"
|
2018-01-16 23:07:29 +01:00
|
|
|
|
2019-04-18 12:42:11 +02:00
|
|
|
# copy helper scripts
|
2018-02-14 13:07:23 +01:00
|
|
|
local linux_image="$OS_RELEASE/vmlinuz"
|
|
|
|
local rootfs_image="$OS_RELEASE/rootfs.img"
|
2018-01-16 23:07:29 +01:00
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
cp "/usr/share/syslinux/mbr.bin" "$PKGBUILDDIR"
|
2018-01-16 23:07:29 +01:00
|
|
|
|
2018-01-17 00:56:06 +01:00
|
|
|
for script in install.sh genimage.sh syslinux.cfg; do
|
2018-02-16 23:22:04 +01:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/$script" "$PKGBUILDDIR"
|
2018-01-16 23:07:29 +01:00
|
|
|
|
2018-02-16 23:22:04 +01:00
|
|
|
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"
|
2018-01-17 00:56:06 +01:00
|
|
|
done
|
2018-01-16 23:07:29 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
2019-03-31 14:18:57 +02:00
|
|
|
tar czf "$BUILDROOT/release.tar.gz" *
|
|
|
|
touch "$PKGDEPLOYDIR/release.files" "$PKGDEPLOYDIR/release.desc"
|
2018-01-16 23:07:29 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
return
|
2019-02-08 00:02:42 +01:00
|
|
|
}
|