Switch PKGBUILD to fetching git snapshot.

I haven't finished a full test build of this yet, but it fetches and begins building.  I'll run through a full build test tomorrow.  No config changes were made so the test is really to make sure all of the cp's and mv's still have paths that make them happy.
This commit is contained in:
Justin Settle 2013-11-08 22:14:51 -05:00
parent 1654eb914e
commit 4e36766c82

View file

@ -13,33 +13,24 @@ pkgrel=1
arch=('armv7h')
url="https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-3.4"
license=('GPL2')
makedepends=('uboot-mkimage' 'dtc' 'git')
makedepends=('uboot-mkimage' 'dtc')
options=('!strip')
source=("config"
_commit=90b982ed9d47345a8f0ed57ce2a28b942188db6d
source=("https://chromium.googlesource.com/chromiumos/third_party/kernel/+archive/${_commit}.tar.gz"
'config'
'kernel.its')
md5sums=('5e255ae340bad3a32d9f1d1559fe3995'
noextract=("${_commit}.tar.gz")
md5sums=('fcc4b2d0b0ac8850dff2f6217f293a3c'
'5e255ae340bad3a32d9f1d1559fe3995'
'56f8343875b928b6aa4e83921e5df25f')
_gitroot='https://chromium.googlesource.com/chromiumos/third_party/kernel.git'
_gitname='chromeos-3.4'
_gitbranch='chromeos-3.4'
_gitcommit='90b982e'
prepare() {
cd "${srcdir}/"
#Set up and extract kernel
mkdir -p ${srcdir}/chromeos-${_basever}
msg "Connecting to GIT server...."
tar -xf ${_commit}.tar.gz -C ${srcdir}/chromeos-${_basever}
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone --depth 1 --branch="${_gitbranch}" "$_gitroot" "$_gitname"
fi
cd "$srcdir/${_gitname}"
git checkout "$_gitcommit"
cd ${srcdir}/chromeos-${_basever}
# Kernel configuration
cp "${srcdir}/config" .config
@ -49,7 +40,7 @@ prepare() {
}
build() {
cd "${srcdir}/${_gitname}"
cd ${srcdir}/chromeos-${_basever}
# get kernel version
make prepare
@ -87,7 +78,7 @@ package_linux-chromebook() {
provides=('linux26' "linux=${pkgver}")
install=${pkgname}.install
cd "${srcdir}/${_gitname}"
cd ${srcdir}/chromeos-${_basever}
KARCH=arm
@ -136,7 +127,7 @@ package_linux-headers-chromebook() {
cd "${pkgdir}/usr/lib/modules/${_kernver}"
ln -sf ../../../src/linux-${_kernver} build
cd "${srcdir}/${_gitname}"
cd ${srcdir}/chromeos-${_basever}
install -D -m644 Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"
install -D -m644 kernel/Makefile \