1 # Contributor: shura <shura1991@gmail.com>
5 pkgdesc="Linux framework for proxying device file callbacks into user-space."
7 url="http://www.circlemud.org/%7Ejelson/software/fusd/"
8 license=('BSD (GPL-compatible)')
10 depends=('kernel26-headers')
11 makedepends=('svn' 'gcc')
18 install=fusd-kor.install
19 source=('fusd-kor-2.6.33-kernel.patch')
21 md5sums=('769fda3fbfa9a0227335963c59d66589')
23 _svntrunk="http://svn.xiph.org/trunk/fusd/"
29 msg "Starting SVN checkout..."
30 if [ -d "${_svnmod}/.svn" ]; then
31 (cd "${_svnmod}" && svn up -r "${pkgver}")
33 svn co "${_svntrunk}" --config-dir ./ -r ${pkgver} "${_svnmod}"
35 msg "SVN checkout done or server timeout"
37 if [[ -e "${srcdir}/${_svnmod}-build" ]]; then
38 rm -Rf "${srcdir}/${_svnmod}-build"
41 cp -R "${_svnmod}" "${_svnmod}-build"
42 cd "${srcdir}/${_svnmod}-build"
44 msg "Patching sources..."
45 patch -p1 < "${srcdir}/fusd-kor-2.6.33-kernel.patch"
46 msg "Starting make..."
48 mkdir -p "${pkgdir}/usr"
49 mkdir -p "${pkgdir}/usr/lib"
50 mkdir -p "${pkgdir}/usr/include"
51 mkdir -p "${pkgdir}/lib"
52 mkdir -p "${pkgdir}/lib/modules"
53 mkdir -p "${pkgdir}/lib/modules/$(uname -r)"
54 mkdir -p "${pkgdir}/lib/modules/$(uname -r)/kernel"
55 mkdir -p "${pkgdir}/lib/modules/$(uname -r)/kernel/drivers"
56 mkdir -p "${pkgdir}/lib/modules/$(uname -r)/kernel/drivers/misc"
57 install -d -m 0755 "${pkgdir}/usr/lib"
58 install -m 0755 "libfusd/libfusd.a" "libfusd/libfusd.so.0.0" "${pkgdir}/usr/lib"
59 install -d -m 0755 "${pkgdir}/usr/include"
60 install -m 0755 "include/fusd.h" "include/fusd_msg.h" "include/kfusd.h" "${pkgdir}/usr/include"
61 install -d -m 0755 "${pkgdir}/lib/modules/2.6.33-ARCH/kernel/drivers/misc"
62 install -m 0755 "kfusd/kfusd.ko" "${pkgdir}/lib/modules/2.6.33-ARCH/kernel/drivers/misc"
65 rm -R "${srcdir}/${_svnmod}-build"
68 # vim:set ts=2 sw=2 et: