aboutsummaryrefslogtreecommitdiffstats
path: root/core/linux-sources/APKBUILD
blob: 3dd6044aaf9c3baba96f4dce6d4d7b90adeee236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pkgname=linux-sources
pkgver=2.6.27.4
_kernver=2.6.27
pkgrel=1
pkgdesc="The vanilla Linux kernel sources"
arch=i486
license=GPL-2
url=http://kernel.org
source="ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_kernver.tar.bz2
	ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
	"

build() {
	cd $srcdir/linux-$_kernver
	if [ "$_kernver" != "$pkgver" ]; then
		bunzip2 -c < ../patch-$pkgver.bz2 | patch -p1 || return 1
	fi

	mkdir -p "$pkgdir/usr/src"
	cd "$srcdir"
	mv "linux-$_kernver" "$pkgdir/usr/src/linux-$pkgver"
}

md5sums="b3e78977aa79d3754cb7f8143d7ddabd  linux-2.6.27.tar.bz2
fa7cb6cf1ee5e796e89905806ffc6f01  patch-2.6.27.4.bz2"