summaryrefslogtreecommitdiff
path: root/community/cdfs/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cdfs/PKGBUILD')
-rw-r--r--community/cdfs/PKGBUILD24
1 files changed, 10 insertions, 14 deletions
diff --git a/community/cdfs/PKGBUILD b/community/cdfs/PKGBUILD
index c89e33ba1..83b84bdba 100644
--- a/community/cdfs/PKGBUILD
+++ b/community/cdfs/PKGBUILD
@@ -1,31 +1,27 @@
-# $Id: PKGBUILD 42474 2011-03-16 21:46:25Z spupykin $
+# $Id: PKGBUILD 52427 2011-07-25 09:33:20Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: J. Santiago Hirschfeld <jsantiagoh@yahoo.com.ar>
pkgname=cdfs
pkgver=2.6.27
-pkgrel=14
+pkgrel=15
pkgdesc="File system module that 'exports' all tracks and boot images on a CD as normal files."
arch=(i686 x86_64 'mips64el')
url="http://www.elis.UGent.be/~ronsse/cdfs/"
license=('GPL')
+makedepends=('linux-headers')
install=cdfs.install
-source=("http://www.elis.UGent.be/~ronsse/cdfs/download/$pkgname-$pkgver.tar.bz2")
-md5sums=('ac64c014a90e3c488394832ea29605b3')
+source=("http://www.elis.UGent.be/~ronsse/cdfs/download/$pkgname-$pkgver.tar.bz2"
+ "cdfs-3.0.0.patch")
+md5sums=('ac64c014a90e3c488394832ea29605b3'
+ 'aba7da94a9dcbb8a93ea423cb6958fef')
build() {
- _kernver=`pacman -Q kernel26 | cut -d . -f 3 | cut -f 1 -d -`
- depends=("kernel26>=2.6.${_kernver}" "kernel26<2.6.`expr ${_kernver} + 1`")
+ _kernver=`pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -`
+ depends=("linux>=3.${_kernver}" "linux<3.`expr ${_kernver} + 1`")
cd $srcdir/$pkgname-$pkgver
-
- patch cddata.c <<EOF
-85c85
-< .sendfile = generic_file_sendfile
----
-> // .sendfile = generic_file_sendfile
-EOF
-
+ patch -p1 <$srcdir/cdfs-3.0.0.patch
make
mkdir -p $pkgdir/lib/modules/`uname -r`/extra
cp cdfs.ko $pkgdir/lib/modules/`uname -r`/extra