1 # Contributor: Ali H. Caliskan <ali.h.caliskan//gmail.com>
2 # Somewhat based on Arch linux official kernel26 PKGBUILD.
8 pkgdesc="Provides kernel level system-call and driver layer to run Windows applications."
10 url="http://www.longene.org/en/index.php"
12 depends=('coreutils' 'mkinitcpio>=0.5.20' 'module-init-tools')
13 install=('longene.install')
14 source=("ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_linux26.tar.bz2"
15 "http://www.longene.org/download/unifiedkernel-$pkgver.tar.bz2"
21 md5sums=('7a80058a6382e5108cdb5554d1609615'
22 '1d805f6471dae6d86bfaf77225937420'
23 '430e7fa30a461a578fe8651752165e20'
24 '0d99a1aa6e5c94e62c80d9b21fa9852b'
25 '5983c538774d7b0aa721a679b8443556'
26 '076daed1c4ff27746291a147839e4f9e'
27 'acb7d033bea6551e0f33524b043d464b')
30 # Export the patch dir
31 cd $srcdir/unifiedkernel-$pkgver/patches
33 # Patch the Linux kernel
34 cd $srcdir/linux-$_linux26
35 patch -p1 < $PATCH/unifiedkernel-$pkgver-linux-$_linux26.diff
36 # Use archlinux adjusted config file
37 #cat $srcdir/config-archlinux > .config
38 cat $srcdir/config-longene > .config
41 # Build & install longene linux kernel
42 make bzImage modules || return 1
43 mkdir -p $pkgdir/{lib/modules,boot}
44 make INSTALL_MOD_PATH=$pkgdir modules_install || return 1
45 cp System.map $pkgdir/boot/System.map26-uk
46 make DESTDIR=$pkgdir install || return 1
47 cp arch/i386/boot/bzImage $pkgdir/boot/vmlinuz26-uk
48 # install preset and kver file for longene linux kernel
49 install -Dm644 $srcdir/$pkgname.preset \
50 $pkgdir/etc/mkinitcpio.d/$pkgname.preset || return 1
51 install -Dm644 $srcdir/$pkgname.kver \
52 $pkgdir/etc/mkinitcpio.d/$pkgname.kver || return 1
54 install -Dm755 $srcdir/unifiedkerneld \
55 $pkgdir/etc/rc.d/unifiedkerneld || return 1
57 # remove the firmware directory
58 rm -r $pkgdir/lib/firmware