updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / fusd-kor-svn / PKGBUILD
blobdf78e75fbba7b03a8d6ac64b29dbcbc7a623a52e
1 # Contributor: shura <shura1991@gmail.com>
2 pkgname="fusd-kor-svn"
3 pkgver=9999
4 pkgrel=1
5 pkgdesc="Linux framework for proxying device file callbacks into user-space."
6 arch=(i686 x86_64)
7 url="http://www.circlemud.org/%7Ejelson/software/fusd/"
8 license=('BSD (GPL-compatible)')
9 groups=()
10 depends=('kernel26-headers')
11 makedepends=('svn' 'gcc')
12 optdepends=()
13 provides=('fusd-kor')
14 conflicts=()
15 replaces=('fusd-kor')
16 backup=()
17 options=()
18 install=fusd-kor.install
19 source=('fusd-kor-2.6.33-kernel.patch')
20 noextract=()
21 md5sums=('769fda3fbfa9a0227335963c59d66589')
23 _svntrunk="http://svn.xiph.org/trunk/fusd/"
24 _svnmod="fusd-kor"
26 build() {
27   cd "${srcdir}"
28   
29   msg "Starting SVN checkout..."
30   if [ -d "${_svnmod}/.svn" ]; then
31     (cd "${_svnmod}" && svn up -r "${pkgver}")
32   else
33     svn co "${_svntrunk}" --config-dir ./ -r ${pkgver} "${_svnmod}"
34   fi
35   msg "SVN checkout done or server timeout"
37   if [[ -e "${srcdir}/${_svnmod}-build" ]]; then
38     rm -Rf "${srcdir}/${_svnmod}-build"
39   fi
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..."
47   make || return 1
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"
64   msg "Cleaning..."
65   rm -R "${srcdir}/${_svnmod}-build"
68 # vim:set ts=2 sw=2 et: