mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:44:36 +08:00
66 lines
1.8 KiB
Bash
66 lines
1.8 KiB
Bash
|
# Arch Contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/fuse3
|
||
|
|
||
|
pkgbase=fuse3
|
||
|
pkgname=(fuse-common fuse3)
|
||
|
pkgver=3.0.0
|
||
|
pkgrel=1
|
||
|
arch=('i686' 'x86_64')
|
||
|
url='https://github.com/libfuse/libfuse'
|
||
|
license=('GPL2')
|
||
|
makedepends=('pkg-config')
|
||
|
options=(!emptydirs)
|
||
|
source=(https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz{,.asc}
|
||
|
'fuse.conf')
|
||
|
sha1sums=('0aa9a250a91cc6de028eeaf853d6c581c0824b04'
|
||
|
'SKIP'
|
||
|
'3b42e37a741d4651099225987dc40e7f02a716ad')
|
||
|
validpgpkeys=(ED31791B2C5C1613AF388B8AD113FCAC3C4E599F) # Nikolaus Rath <Nikolaus@rath.org>
|
||
|
|
||
|
build() {
|
||
|
cd fuse-$pkgver
|
||
|
|
||
|
export MOUNT_FUSE_PATH=/usr/bin
|
||
|
./configure --prefix=/usr --libdir=/usr/lib --enable-lib --enable-util --disable-example
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package_fuse-common() {
|
||
|
pkgdesc="Common files for fuse2/3 packages"
|
||
|
backup=(etc/fuse.conf)
|
||
|
|
||
|
cd fuse-$pkgver
|
||
|
make DESTDIR=${pkgdir} install
|
||
|
|
||
|
install -Dm644 ${srcdir}/fuse.conf ${pkgdir}/etc/fuse.conf
|
||
|
|
||
|
# static device nodes are handled by udev
|
||
|
rm -r ${pkgdir}/dev
|
||
|
|
||
|
# Remove init script in wrong path
|
||
|
# Don't add our own for now, as fusectl fs oopses on 2.6.18
|
||
|
rm -r ${pkgdir}/usr/etc/init.d
|
||
|
|
||
|
# part of fuse3 package
|
||
|
rm -r ${pkgdir}/usr/{bin,include,lib/{pkgconfig,libfuse3.so*,*.a},share/man/man1/fusermount3.1}
|
||
|
}
|
||
|
|
||
|
package_fuse3() {
|
||
|
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
|
||
|
depends=('glibc' 'fuse-common')
|
||
|
|
||
|
cd fuse-$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 -r ${pkgdir}/usr/etc/init.d
|
||
|
|
||
|
# static device nodes are handled by udev
|
||
|
rm -r ${pkgdir}/dev
|
||
|
|
||
|
# part of fuse-common package
|
||
|
rm -r ${pkgdir}/usr/lib/udev/rules.d
|
||
|
rm ${pkgdir}/usr/share/man/man8/mount.fuse.8
|
||
|
}
|