updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / tuxonice-sources / PKGBUILD
blob01ae90532fecc1daff9979825daae70bb6f24b18
1 # Maintainer: onexused <aursignup dot kyoo at xoxy dot net >
2 # Modified to fit your television.
3 pkgname=tuxonice-sources
4 pkgver=2.6.36
5 pkgrel=1
6 pkgdesc="Vanilla kernel sources patched with Gentoo and tuxonice patches."
7 arch=(any)
8 url="http://www.kernel.org, http://tuxonice.net, http://www.gentoo.org"
9 license=('GPL2')
10 optdepends=('hibernate-script: To use hibernation'
11             'tuxonice-userui: For a text or fbsplash hibernation UI')
12 # As this package installs kernel *sources*, rather than a binary named
13 # "kernel26" or the like, I believe it does not conflict with any other package.
14 install=tuxonice-sources.install
16 source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
17    http://tuxonice.net/files/tuxonice-3.2-rc2-for-$pkgver.patch.bz2
18    genpatches-$pkgver-8.base.tar.bz2
19    genpatches-$pkgver-8.extras.tar.bz2)
20 md5sums=(61f3739a73afb6914cb007f37fb09b62
21 9e9986a855a12e44b143f741fb6ed26d
22 a7aa5326443d6cd51407952206294e4e
23 c2c4ac403a65a758827f9ad38543d57d
26 build() {
27    cd $srcdir/linux-$pkgver
28    for I in $srcdir/$pkgver/*.patch
29       do patch -Np1 < "$I"
30    done
31    patch -Np1 < $srcdir/tuxonice-3.2-rc2-for-$pkgver.patch
34 package() {
35         mkdir -p $pkgdir/usr/src
36         mv $srcdir/linux-$pkgver $pkgdir/usr/src/linux-$pkgver-tuxonice-$pkgrel