diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-31 08:07:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-31 08:07:19 +0000 |
commit | 3e63f263f685e1e829d9ca80091ddfb246015b22 (patch) | |
tree | 7dcabeeac31014ce19ce0a86f7690da6ea2ce696 /core | |
parent | 6978762b3c4076ad8c97ba48cc19dd76601f67bb (diff) | |
download | aports-3e63f263f685e1e829d9ca80091ddfb246015b22.tar.bz2 aports-3e63f263f685e1e829d9ca80091ddfb246015b22.tar.xz |
new aport: core/linux-sources, the vanilla kernel sources
Diffstat (limited to 'core')
-rw-r--r-- | core/linux-sources/APKBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/core/linux-sources/APKBUILD b/core/linux-sources/APKBUILD new file mode 100644 index 0000000000..ba391d20ae --- /dev/null +++ b/core/linux-sources/APKBUILD @@ -0,0 +1,26 @@ +pkgname=linux-sources +pkgver=2.6.27.4 +_kernver=2.6.27 +pkgrel=1 +pkgdesc="The vanilla Linux kernel sources" +makedepends=patch +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" |