From 66101679ec75ef7f6c675b0edf1e3c10a484946c Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Thu, 12 Feb 2009 08:46:09 +0000 Subject: created new directory structure. --- testing/linux-sources/APKBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testing/linux-sources/APKBUILD (limited to 'testing/linux-sources/APKBUILD') diff --git a/testing/linux-sources/APKBUILD b/testing/linux-sources/APKBUILD new file mode 100644 index 0000000000..63c1b47ac3 --- /dev/null +++ b/testing/linux-sources/APKBUILD @@ -0,0 +1,25 @@ +pkgname=linux-sources +pkgver=2.6.28.4 +_kernver=2.6.28 +pkgrel=0 +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="d351e44709c9810b85e29b877f50968a linux-2.6.28.tar.bz2 +65afbbf63a73ee7be7227531622049fe patch-2.6.28.4.bz2" -- cgit v1.2.3