d09de5e522
--HG-- extra : convert_revision : a51aeeb0ccabd552b1547814264115536b78360c
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Build template for 'kernel-snapshot'. To test the latest and greatest
|
|
# kernel available from www.kernel.org.
|
|
. ${XBPS_SRCPKGDIR}/kernel/template
|
|
|
|
# Reset some stuff.
|
|
unset revision triggers build_depends run_depends
|
|
|
|
# Override required vars.
|
|
pkgname=kernel-snapshot
|
|
#revision=1
|
|
_kernel_snapshot=yes
|
|
_kernel_ver=2.6.34
|
|
_kernel_patch_ver=rc6
|
|
version=${_kernel_ver}${_kernel_patch_ver}
|
|
wrksrc="linux-${_kernel_ver}-${_kernel_patch_ver}"
|
|
distfiles="${KERNEL_SITE}/kernel/v2.6/testing/linux-${_kernel_ver}-${_kernel_patch_ver}.tar.bz2"
|
|
#version=${_kernel_ver}
|
|
#wrksrc=linux-${version}
|
|
#distfiles="${KERNEL_SITE}/kernel/v2.6/linux-${_kernel_ver}.tar.bz2"
|
|
checksum=1bc0088af52936b89b6e4a4cdd15fe4d85c46b7123b5f21c5ee06fd2e1e39be4
|
|
subpackages="$pkgname-firmware $pkgname-headers"
|
|
|
|
Add_dependency run ${pkgname}-firmware ">=${version}"
|
|
Add_dependency run initramfs-tools
|
|
Add_dependency build perl
|
|
Add_dependency full coreutils
|
|
Add_dependency full module-init-tools
|
|
|
|
post_install()
|
|
{
|
|
if [ -n "${revision}" ]; then
|
|
lver="${_kernel_ver}-${_kernel_patch_ver}_${revision}"
|
|
else
|
|
lver="${_kernel_ver}-${_kernel_patch_ver}"
|
|
fi
|
|
|
|
mv ${DESTDIR}/lib/firmware ${DESTDIR}/firmware
|
|
mkdir -p ${DESTDIR}/lib/firmware
|
|
mv ${DESTDIR}/firmware ${DESTDIR}/lib/firmware/${lver}
|
|
}
|