2010-02-18 19:44:47 +01: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-25 01:47:28 +01:00
|
|
|
#revision=1
|
2010-02-18 19:44:47 +01:00
|
|
|
_kernel_snapshot=yes
|
2010-03-13 09:36:02 +01:00
|
|
|
_kernel_ver=2.6.34
|
2010-04-21 03:22:09 +02:00
|
|
|
_kernel_patch_ver=rc5
|
2010-03-13 09:36:02 +01:00
|
|
|
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"
|
2010-04-21 03:22:09 +02:00
|
|
|
checksum=9b4816534c020bb436dc49ee3c9281cca41dd0c1df90047ed541bd1f33e7083f
|
2010-02-19 08:47:40 +01:00
|
|
|
subpackages="$pkgname-firmware $pkgname-headers"
|
2010-02-18 19:44:47 +01:00
|
|
|
|
|
|
|
# Reset some stuff.
|
2010-03-13 09:36:02 +01:00
|
|
|
unset triggers build_depends run_depends
|
2010-02-18 19:44:47 +01:00
|
|
|
|
2010-02-19 08:47:40 +01:00
|
|
|
Add_dependency run ${pkgname}-firmware ">=${version}"
|
2010-02-18 19:44:47 +01:00
|
|
|
Add_dependency run initramfs-tools
|
|
|
|
Add_dependency build perl
|
|
|
|
Add_dependency full coreutils
|
|
|
|
Add_dependency full module-init-tools
|
2010-02-19 08:47:40 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2010-03-13 09:36:02 +01:00
|
|
|
if [ -n "${revision}" ]; then
|
|
|
|
lver="${_kernel_ver}-${_kernel_patch_ver}_${revision}"
|
|
|
|
else
|
|
|
|
lver="${_kernel_ver}-${_kernel_patch_ver}"
|
|
|
|
fi
|
2010-02-19 08:47:40 +01:00
|
|
|
|
|
|
|
mv ${DESTDIR}/lib/firmware ${DESTDIR}/firmware
|
|
|
|
mkdir -p ${DESTDIR}/lib/firmware
|
2010-03-13 09:36:02 +01:00
|
|
|
mv ${DESTDIR}/firmware ${DESTDIR}/lib/firmware/${lver}
|
2010-02-19 08:47:40 +01:00
|
|
|
}
|