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
|
|
|
|
|
2010-04-30 15:32:15 +00:00
|
|
|
# Reset some stuff.
|
2011-07-09 22:46:36 +00:00
|
|
|
unset revision
|
2010-04-30 15:32:15 +00:00
|
|
|
|
2010-02-18 18:44:47 +00:00
|
|
|
# Override required vars.
|
|
|
|
pkgname=kernel-snapshot
|
2011-07-09 22:46:36 +00:00
|
|
|
revision=1
|
2011-02-15 10:42:02 +00:00
|
|
|
_kernel_headers_revision=${revision}
|
2010-02-18 18:44:47 +00:00
|
|
|
_kernel_snapshot=yes
|
2011-05-31 07:06:59 +00:00
|
|
|
_kernel_ver=3.0
|
|
|
|
_kernel_ver_minor=0
|
2011-07-05 14:24:50 +00:00
|
|
|
_kernel_patch_ver=rc6
|
2011-05-31 07:06:59 +00:00
|
|
|
version=${_kernel_ver}.${_kernel_ver_minor}${_kernel_patch_ver}
|
|
|
|
short_desc="The Linux kernel and modules"
|
2010-03-13 08:36:02 +00:00
|
|
|
wrksrc="linux-${_kernel_ver}-${_kernel_patch_ver}"
|
2011-05-31 07:06:59 +00:00
|
|
|
distfiles="${KERNEL_SITE}/kernel/v3.0/testing/linux-${_kernel_ver}-${_kernel_patch_ver}.tar.bz2"
|
2011-07-05 14:24:50 +00:00
|
|
|
checksum=6864cd66ec7aaf4b71901abcbd957f8916d60b05e8107ac980a113d824489c71
|
2010-11-01 17:25:34 +00:00
|
|
|
subpackages="$pkgname-headers"
|
2010-11-22 21:53:35 +00:00
|
|
|
noverifyrdeps=yes
|
|
|
|
|
2011-06-21 07:32:58 +00: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
|
|
|
|
|
2011-07-09 22:46:36 +00:00
|
|
|
# Kernel hooks support.
|
|
|
|
kernel_hooks_version="${_kernver}"
|