updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / fuse-cuse / PKGBUILD
blobf4b7a6bdae1177d8078c4a35e5b0e6d9ac6b86b0
1 # Contributor: Jonathan Liu <net147@gmail.com>
2 pkgname=fuse-cuse
3 pkgver=2.8.0_pre2
4 _basever=2.8.0
5 _realpkgver=${pkgver/_/-}
6 pkgrel=1
7 pkgdesc="Filesystem in Userspace with CUSE support"
8 arch=('i686' 'x86_64')
9 url="http://userweb.kernel.org/~tj/ossp/"
10 license=('GPL2')
11 depends=('glibc')
12 makedepends=('pkgconfig')
13 provides=("fuse=${pkgver}")
14 conflicts=('fuse')
15 backup=("etc/fuse.conf" "etc/udev/rules.d/99-fuse.rules")
16 install="fuse.install"
17 source=("http://userweb.kernel.org/~tj/ossp/fuse-${_realpkgver}-cuse.tar.gz"
18         "fuse.conf")
19 options=(!libtool)
20 md5sums=('aad8b490dd836dde91a55ce52e845ac1'
21          'c9457cf5b2196da67d5ac816d1c86a4f')
23 build() {
24   cd ${srcdir}/fuse-${pkgver/_/-}
25   ./configure --prefix=/usr --disable-kernel-module --enable-lib \
26               --enable-util --bindir=/bin
27   make || return 1
28   make DESTDIR=${pkgdir} install || return 1
30   # static device nodes will cause collision.
31   rm -rf ${pkgdir}/dev
33   # Remove init script in wrong path
34   # Don't add our own for now, as fusectl fs oopses on 2.6.18
35   rm -rf ${pkgdir}/etc/init.d
36   #install -D -m755 ${srcdir}/fuse.rc.d ${pkgdir}/etc/rc.d/fuse
38   install -d ${pkgdir}/lib
39   mv ${pkgdir}/usr/lib/libfuse.so.${_basever} ${pkgdir}/lib/ || return 1
40   ln -s ../../lib/libfuse.so.${_basever} ${pkgdir}/usr/lib/libfuse.so.${_basever} || return 1
41   ln -s libfuse.so.${_basever} ${pkgdir}/lib/libfuse.so.2 || return 1
42   mv ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 ${pkgdir}/lib/ || return 1
43   ln -s ../../lib/libulockmgr.so.1.0.1 ${pkgdir}/usr/lib/libulockmgr.so.1.0.1 || return 1
44   ln -s libulockmgr.so.1.0.1 ${pkgdir}/lib/libulockmgr.so.1 || return 1
46   # install sample config file
47   install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
50 # vim:set ts=2 sw=2 et: