2010-02-18 18:44:47 +00:00
|
|
|
# Build template for 'kernel-snapshot'. To test the latest and greatest
|
|
|
|
# kernel available from www.kernel.org.
|
|
|
|
. ${XBPS_SRCPKGDIR}/kernel/template
|
|
|
|
|
|
|
|
# Override required vars.
|
|
|
|
pkgname=kernel-snapshot
|
2010-02-19 07:47:40 +00:00
|
|
|
revision=1
|
2010-02-18 18:44:47 +00:00
|
|
|
_kernel_snapshot=yes
|
|
|
|
_kernel_ver=2.6.33
|
|
|
|
_kernel_patch_ver=rc8
|
|
|
|
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"
|
|
|
|
checksum=9b5feeb8cf473838d34bd66c6ce9549c654817755559b6a6050d4930cca6d0fc
|
2010-02-19 07:47:40 +00:00
|
|
|
subpackages="$pkgname-firmware $pkgname-headers"
|
2010-02-18 18:44:47 +00:00
|
|
|
|
|
|
|
# Reset some stuff.
|
|
|
|
unset build_depends run_depends
|
|
|
|
|
2010-02-19 07:47:40 +00:00
|
|
|
Add_dependency run ${pkgname}-firmware ">=${version}"
|
2010-02-18 18:44:47 +00:00
|
|
|
Add_dependency run initramfs-tools
|
|
|
|
Add_dependency build perl
|
|
|
|
Add_dependency full coreutils
|
|
|
|
Add_dependency full module-init-tools
|
2010-02-19 07:47:40 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
}
|