Skip to content

Instantly share code, notes, and snippets.

@andreldm
Created August 16, 2018 13:53
Show Gist options
  • Select an option

  • Save andreldm/e6db58d50a842a913b0345027ca6472d to your computer and use it in GitHub Desktop.

Select an option

Save andreldm/e6db58d50a842a913b0345027ca6472d to your computer and use it in GitHub Desktop.
AUR apfs-fuse-git
# Maintainer: Adam Harvey <adam@adamharvey.name>
pkgname=apfs-fuse-git
pkgver=r54.cecf2aa
pkgrel=1
pkgdesc="FUSE driver for APFS (Apple File System)"
arch=('i686' 'x86_64')
url="https://github.com/sgan81/apfs-fuse"
license=('GPL')
groups=()
depends=('fuse2')
makedepends=('git' 'fuse2' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=(
'apfs-fuse::git+https://github.com/sgan81/apfs-fuse'
'https://patch-diff.githubusercontent.com/raw/sgan81/apfs-fuse/pull/53.diff'
)
noextract=()
sha256sums=(
'SKIP'
'2382ef70c34ebc24f74dac3f0a156526be868eb6d50a35c942cdd421211fb69d'
)
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git apply "${srcdir}/53.diff"
git submodule update --init
}
build() {
cd "$srcdir/${pkgname%-git}"
mkdir -p build
cd build
cmake ..
make
}
package() {
cd "$srcdir/${pkgname%-git}"
mkdir -p "$pkgdir/usr/bin"
install -Dm755 build/bin/{apfs-dump,apfs-dump-quick,apfs-fuse,lzfse} "$pkgdir/usr/bin"
}
@miron

miron commented Sep 20, 2018

Copy link
Copy Markdown

Patch is merged, you can remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment