core/fuse/PKGBUILD

60 lines
1.5 KiB
Bash
Raw Normal View History

2012-01-19 06:26:12 +08:00
#
2012-11-22 22:31:22 +08:00
# Platform Packages for Chakra
2012-01-19 06:26:12 +08:00
#
# Drake Justice <djustice[at]chakra-linux[dot]org>
2012-11-22 22:31:22 +08:00
# Contributors from Arch:
# Ronald van Haren <ronald.archlinux.org>
# Tom Gundersen <teg@jklm.no>
# Mark Rosenstand <mark@archlinux.org>
2012-01-19 06:26:12 +08:00
2010-05-22 06:07:29 +08:00
pkgname=fuse
2014-09-27 12:14:36 +08:00
pkgver=2.9.3
pkgrel=1
2010-05-22 06:07:29 +08:00
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
arch=('i686' 'x86_64')
url="http://fuse.sourceforge.net/"
2014-09-27 12:14:36 +08:00
license=('GPL2')
2010-05-22 06:07:29 +08:00
depends=('glibc')
makedepends=('pkgconfig')
2012-11-22 22:31:22 +08:00
backup=(etc/fuse.conf)
2010-05-22 06:07:29 +08:00
install=fuse.install
2012-08-15 00:14:32 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
2012-11-22 22:31:22 +08:00
'fuse.conf')
2014-09-27 12:14:36 +08:00
sha1sums=('94bd1974a9f2173ac3c2cf122f9fa3c35996b88e'
'3b42e37a741d4651099225987dc40e7f02a716ad')
2010-05-22 06:07:29 +08:00
2014-09-27 12:14:36 +08:00
prepare() {
cd "$pkgname-$pkgver"
2012-01-19 06:26:12 +08:00
2012-11-22 22:31:22 +08:00
# fix building with glibc-2.14
2014-09-27 12:14:36 +08:00
sed -i '1i#define _GNU_SOURCE' util/fusermount.c
sed -i "/MOUNT_FUSE_PATH=/s#/sbin#/usr/bin#" configure
}
2012-01-19 06:26:12 +08:00
2014-09-27 12:14:36 +08:00
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --libdir=/usr/lib \
--enable-lib --enable-util --disable-example
2012-01-19 06:26:12 +08:00
make
2012-08-15 00:14:32 +08:00
}
package() {
2014-09-27 12:14:36 +08:00
cd "$pkgname-$pkgver"
2012-08-15 00:14:32 +08:00
2014-09-27 12:14:36 +08:00
make DESTDIR=${pkgdir} install
2012-11-22 22:31:22 +08:00
2010-05-22 06:07:29 +08:00
# Remove init script in wrong path
2014-09-27 12:14:36 +08:00
# Don't add our own for now, as fusectl fs oopses on 2.6.18
rm -rf ${pkgdir}/etc/init.d
2010-05-22 06:07:29 +08:00
# install sample config file
2014-09-27 12:14:36 +08:00
install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
2012-11-22 22:31:22 +08:00
# remove udev rules (is in the udev package}
rm -rf ${pkgdir}/etc/udev
2012-01-19 06:26:12 +08:00
2014-09-27 12:14:36 +08:00
# static device nodes are handled by udev
rm -rf ${pkgdir}/dev
}