blob: c3086e6c2b1e6b3426569c405f7d263e4c843894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $Id: PKGBUILD 187057 2013-06-03 11:16:31Z allan $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Mark Rosenstand <mark@archlinux.org>
pkgname=fuse
pkgver=2.9.2
pkgrel=3
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
arch=('i686' 'x86_64')
url="http://fuse.sourceforge.net/"
license=('GPL2')
depends=('glibc')
makedepends=('pkg-config')
backup=(etc/fuse.conf)
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
'fuse.conf')
options=(!libtool)
sha1sums=('fcfc005b1edcd5e8b325729a1b325ff0e8b2a5ab'
'3b42e37a741d4651099225987dc40e7f02a716ad')
prepare() {
cd "$pkgname-$pkgver"
# fix building with glibc-2.14
sed -i '1i#define _GNU_SOURCE' util/fusermount.c
sed -i "/MOUNT_FUSE_PATH=/s#/sbin#/usr/bin#" configure
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --libdir=/usr/lib \
--enable-lib --enable-util
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR=${pkgdir} install
# Remove init script in wrong path
# Don't add our own for now, as fusectl fs oopses on 2.6.18
rm -rf ${pkgdir}/etc/init.d
# install sample config file
install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
# remove udev rules (is in the udev package}
rm -rf ${pkgdir}/etc/udev
# static device nodes are handled by udev
rm -rf ${pkgdir}/dev
}
|