diff options
Diffstat (limited to 'community-testing/cdfs/PKGBUILD')
-rw-r--r-- | community-testing/cdfs/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community-testing/cdfs/PKGBUILD b/community-testing/cdfs/PKGBUILD new file mode 100644 index 000000000..af18a5dbb --- /dev/null +++ b/community-testing/cdfs/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 42474 2011-03-16 21:46:25Z 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 +pkgdesc="File system module that 'exports' all tracks and boot images on a CD as normal files." +arch=(i686 x86_64) +url="http://www.elis.UGent.be/~ronsse/cdfs/" +license=('GPL') +install=cdfs.install +source=("http://www.elis.UGent.be/~ronsse/cdfs/download/$pkgname-$pkgver.tar.bz2") +md5sums=('ac64c014a90e3c488394832ea29605b3') + +build() { + _kernver=`pacman -Q kernel26 | cut -d . -f 3 | cut -f 1 -d -` + depends=("kernel26>=2.6.${_kernver}" "kernel26<2.6.`expr ${_kernver} + 1`") + + cd $srcdir/$pkgname-$pkgver + + patch cddata.c <<EOF +85c85 +< .sendfile = generic_file_sendfile +--- +> // .sendfile = generic_file_sendfile +EOF + + make + mkdir -p $pkgdir/lib/modules/`uname -r`/extra + cp cdfs.ko $pkgdir/lib/modules/`uname -r`/extra +} |