updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / cdfs-ice / PKGBUILD
blobad5ff6496a21858936aff0830f8ad3b0a2daee7e
1 # Maintainer: cantabile <cantabile dot desu at gmail dot com>
2 # Contributor (from 'cdfs'): J. Santiago Hirschfeld <jsantiagoh@yahoo.com.ar>
3 # based on 'cdfs' in [community]
5 _appname='cdfs'
6 _suffix='-ice'
7 _kernver_one='2.6.35'
8 _kernver_two='2.6.36'
9 _kernver=${_kernver_one}${_suffix}
11 pkgname=${_appname}${_suffix}
12 pkgver=2.6.27
13 pkgrel=2
14 pkgdesc="File system module that 'exports' all tracks and boot images \
15          on a CD as normal files. For use with kernel26${_suffix}"
16 arch=('i686' 'x86_64')
17 url="http://www.elis.UGent.be/~ronsse/cdfs/"
18 license=('GPL')
19 install=${_appname}.install
20 depends=("kernel26${_suffix}>=${_kernver_one}" "kernel26${_suffix}<${_kernver_two}")
21 makedepends=("kernel26-headers>=${_kernver_one}" "kernel26-headers<${_kernver_two}"
22              "kernel26${_suffix}>=${_kernver_one}" "kernel26${_suffix}<${_kernver_two}")
23 source=("http://www.elis.UGent.be/~ronsse/cdfs/download/${_appname}-${pkgver}.tar.bz2")
24 md5sums=('ac64c014a90e3c488394832ea29605b3')
26 build() {
27   cd "${srcdir}/${_appname}-${pkgver}"
29   patch cddata.c <<EOF
30 85c85
31 <   .sendfile         = generic_file_sendfile
32 ---
33 > //  .sendfile         = generic_file_sendfile
34 EOF
36   make KDIR=/usr/src/linux-${_kernver} || return 1
37   mkdir -p "${pkgdir}/lib/modules/${_kernver}/extra" && \
38   cp cdfs.ko "${pkgdir}/lib/modules/${_kernver}/extra"