core/fuse/PKGBUILD

57 lines
1.3 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
2012-11-22 22:31:22 +08:00
pkgver=2.9.2
pkgrel=2
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/"
license="GPL2"
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
options=(!libtool)
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')
md5sums=('7d80d0dc9cc2b9199a0c53787c151205'
'c9457cf5b2196da67d5ac816d1c86a4f')
2010-05-22 06:07:29 +08:00
build() {
2012-08-15 00:14:32 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2012-01-19 06:26:12 +08:00
2012-11-22 22:31:22 +08:00
# fix building with glibc-2.14
sed -i '1i#define _GNU_SOURCE' util/fusermount.c
./configure --prefix=/usr --libdir=/usr/lib --enable-lib \
--enable-util --bindir=/bin
2012-01-19 06:26:12 +08:00
make
2012-08-15 00:14:32 +08:00
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make install DESTDIR="${pkgdir}"
2010-05-22 06:07:29 +08:00
# static device nodes will cause collision.
2012-08-15 00:14:32 +08:00
rm -rf "${pkgdir}/dev"
2012-11-22 22:31:22 +08:00
2010-05-22 06:07:29 +08:00
# Remove init script in wrong path
2012-08-15 00:14:32 +08:00
rm -rf "${pkgdir}/etc/init.d"
2010-05-22 06:07:29 +08:00
# install sample config file
2012-11-22 22:31:22 +08:00
install -D -m644 "${srcdir}/fuse.conf" "${pkgdir}/etc/fuse.conf"
# remove udev rules (is in the udev package}
rm -rf ${pkgdir}/etc/udev
2010-05-22 06:07:29 +08:00
}
2012-01-19 06:26:12 +08:00