updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / shfs / PKGBUILD
blob180d1fb1daca07f1f3425286e67a3f640bad9d96
1 # $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
2 # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
4 pkgname=shfs
5 pkgver=0.35
6 _kernver=2.6.22-ARCH
7 pkgrel=13
8 pkgdesc="SHell FileSystem Linux kernel module"
9 arch=('i686' 'x86_64')
10 url="http://shfs.sourceforge.net/"
11 license=('GPL2')
12 depends=('kernel26' 'shfs-utils')
13 install=$pkgname.install
14 source=(http://downloads.sourceforge.net/sourceforge/shfs/$pkgname-$pkgver.tar.gz \
15         http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-$pkgver/space_chars.diff \
16         http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-$pkgver/uidgid32.diff \
17         http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-$pkgver/df.diff \
18         http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-$pkgver/gcc4-compilefix.patch \
19         http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/shfs-$pkgver/d_entry-2.6.16.diff \
20         inode-bugfix.diff 2618fix.diff shfs-inode-and-fs.patch)
21 md5sums=('016f49d71bc32eee2b5d11fc1600cfbe' 'e5f37f793e95acdfd8e89affe9949160'\
22          '29e5b080a1744f8283b8f55d5b904a60' '29b3f063e5feb8c259abc86d07f92f85'\
23          '2b21af8aeef7fd2410e48dad73cb2633' '23d4ad14fd92a038647d1f21b7abac18'\
24          '1f46232b6531f0ce990f091dfdeea3e4' 'd3d022b4dfb3f6cab5ac8fca8552091f'\
25          'ce9993ac4e4881959578501fbfc33691')
27 build() {
28   cd $startdir/src/$pkgname-$pkgver
30   patch -Np0 -i ../space_chars.diff || return 1
31   patch -Np0 -i ../uidgid32.diff || return 1
32   patch -Np0 -i ../df.diff || return 1
33   patch -Np1 -i ../gcc4-compilefix.patch || return 1
34   patch -Np0 -i ../d_entry-2.6.16.diff || return 1
35   patch -Np1 -i ../inode-bugfix.diff || return 1
36   patch -Np1 -i ../2618fix.diff || return 1
37   patch -Np0 -i ../shfs-inode-and-fs.patch || return 1
39   sed -i "s!^KERNEL=.*\$!KERNEL=${_kernver}!" Makefile
41   make module || return 1
42   make ROOT=$startdir/pkg module-install
44   sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install