jobextra/fuse3/PKGBUILD
2022-09-13 00:22:56 +03:00

57 lines
1.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgbase=fuse3
pkgname=(fuse-common fuse3)
pkgver=3.12.0
pkgrel=01
arch=('x86_64')
url='https://github.com/libfuse/libfuse'
makedepends=('pkg-config' 'meson' 'eudev')
options=(!emptydirs)
source=(https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.xz{,.asc})
build() {
cd fuse-$pkgver
rm -rf build
meson --prefix=/usr --sbindir=bin -D examples=false . build
cd build
ninja
}
package_fuse-common() {
pkgdesc="Common files for fuse2/3 packages"
backup=(etc/fuse.conf)
install -Dm644 fuse-${pkgver}/util/fuse.conf "${pkgdir}"/etc/fuse.conf
}
package_fuse3() {
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
depends=('fuse-common' 'glibc')
cd fuse-$pkgver/build
DESTDIR="${pkgdir}" ninja install
rm -r "${pkgdir}"/etc/init.d
rm -r "${pkgdir}"/etc/fuse.conf
# static device nodes are handled by udev
rm -r "${pkgdir}"/dev
}
#---- license gpg-key sha256sums ----
license=('GPL2')
validpgpkeys=(ED31791B2C5C1613AF388B8AD113FCAC3C4E599F) # Nikolaus Rath <Nikolaus@rath.org>
sha256sums=(33b8a92d6f7a88e6a889f0009206933482f48f3eb85d88cf09ef551313ac7373 # fuse-3.12.0.tar.xz
ad2a024eff0182bc49f48cad9fc4a61d87483b5cb19d826d28f56516bb2f202c) # fuse-3.12.0.tar.xz.asc