Skip to content

Commit

Permalink
Fix kernelver.
Browse files Browse the repository at this point in the history
  • Loading branch information
GamePlayer-8 committed Dec 11, 2024
1 parent 685b141 commit d71687e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_kernelver=KERNELVER-chrultrabook-stoney
pkgname=linux-chrultrabook-stoney
pkgver=KERNELVER
pkgver=PACKVER
arch=x86_64
url="https://chrultrabook.github.io/docs/"
maintainer="Chimmie Firefly <gameplayer2019pl@tutamail.com>"
Expand All @@ -20,5 +20,6 @@ package() {
install -D -m755 vmlinuz ${pkgdir}/boot/vmlinuz-chrultrabook-stoney
install -D -m644 kernel.release ${pkgdir}/usr/share/kernel/chrultrabook-stoney/kernel.release
mkdir -p ${pkgdir}/lib/modules
ls modules/lib/modules
cp -r modules/lib/modules/${_kernelver} ${pkgdir}/lib/modules
}
3 changes: 2 additions & 1 deletion runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ function package_kernel {
mkdir -p "${package_dir}"
cp /dist/kernel-alpine.tar.gz "${package_dir}/kernel.tar.gz"
cp "${build_dir}/alpine/src/community/linux-chrultrabook-stoney/APKBUILD.template" "${package_dir}/APKBUILD"
sed -i "s/KERNELVER/$(echo "${package_version}" | sed -e 's/nightly/0/g')/g" "${package_dir}/APKBUILD"
sed -i "s/KERNELVER/$(echo "${kernel_version}" | sed -e 's/nightly/0/g')/g" "${package_dir}/APKBUILD"
sed -i "s/PACKVER/$(echo "${package_version}" | sed -e 's/nightly/0/g')/g" "${package_dir}/APKBUILD"
output_dir="${build_dir}"
BUILDUSER="abuilder"
adduser "$BUILDUSER" -D || true
Expand Down

0 comments on commit d71687e

Please sign in to comment.