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
|
|
|
|
|
2010-04-30 17:32:15 +02:00
|
|
|
# Reset some stuff.
|
|
|
|
unset revision triggers build_depends run_depends
|
|
|
|
|
2010-02-18 19:44:47 +01:00
|
|
|
# Override required vars.
|
|
|
|
pkgname=kernel-snapshot
|
2011-02-16 09:07:25 +01:00
|
|
|
#revision=1
|
2011-02-15 11:42:02 +01:00
|
|
|
_kernel_headers_revision=${revision}
|
2010-02-18 19:44:47 +01:00
|
|
|
_kernel_snapshot=yes
|
2011-05-31 09:06:59 +02:00
|
|
|
_kernel_ver=3.0
|
|
|
|
_kernel_ver_minor=0
|
2011-06-30 22:45:02 +02:00
|
|
|
_kernel_patch_ver=rc5
|
2011-05-31 09:06:59 +02:00
|
|
|
version=${_kernel_ver}.${_kernel_ver_minor}${_kernel_patch_ver}
|
|
|
|
short_desc="The Linux kernel and modules"
|
2010-03-13 09:36:02 +01:00
|
|
|
wrksrc="linux-${_kernel_ver}-${_kernel_patch_ver}"
|
2011-05-31 09:06:59 +02:00
|
|
|
distfiles="${KERNEL_SITE}/kernel/v3.0/testing/linux-${_kernel_ver}-${_kernel_patch_ver}.tar.bz2"
|
2011-06-30 22:45:02 +02:00
|
|
|
checksum=48d2cd0f44c24b43bf4f5ac79e605bde66984096fe31768a6ac00de2d7c50886
|
2010-11-01 18:25:34 +01:00
|
|
|
subpackages="$pkgname-headers"
|
2010-11-22 22:53:35 +01:00
|
|
|
noverifyrdeps=yes
|
|
|
|
|
2011-06-21 09:32:58 +02:00
|
|
|
if [ -n "${_kernel_snapshot}" ]; then
|
|
|
|
_kernver="${_kernel_ver}.${_kernel_ver_minor}-${_kernel_patch_ver}"
|
|
|
|
else
|
|
|
|
_kernver=${version}
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$revision" ]; then
|
|
|
|
_kernver="${_kernver}_${revision}"
|
|
|
|
fi
|
|
|
|
|
2010-11-01 18:25:34 +01:00
|
|
|
Add_dependency run linux-firmware
|
2010-02-18 19:44:47 +01:00
|
|
|
Add_dependency run initramfs-tools
|
2011-07-02 20:23:37 +02:00
|
|
|
Add_dependency build xz
|
|
|
|
Add_dependency build coreutils
|
2010-12-07 14:31:38 +01:00
|
|
|
Add_dependency build perl ">=0"
|
2010-02-18 19:44:47 +01:00
|
|
|
Add_dependency full module-init-tools
|