diff options
author | Adam Harvey | 2018-05-15 16:09:18 -0700 |
---|---|---|
committer | Adam Harvey | 2018-05-15 16:09:18 -0700 |
commit | c590cd166f5abb1801d45d96ce27df6de73b0c5a (patch) | |
tree | 5277e62285ea94fa62f02be3476c622caa2ca0f8 | |
download | aur-c590cd166f5abb1801d45d96ce27df6de73b0c5a.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d1efabbb6252 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = apfs-fuse-git + pkgdesc = FUSE driver for APFS (Apple File System) + pkgver = r45.7da8083 + pkgrel = 1 + url = https://github.com/sgan81/apfs-fuse + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = fuse3 + makedepends = cmake + depends = fuse3 + provides = apfs-fuse + conflicts = apfs-fuse + source = apfs-fuse::git+https://github.com/sgan81/apfs-fuse + md5sums = SKIP + +pkgname = apfs-fuse-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cde6c2086735 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Adam Harvey <adam@adamharvey.name> +pkgname=apfs-fuse-git +pkgver=r45.7da8083 +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=('fuse3') +makedepends=('git' 'fuse3' 'cmake') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +replaces=() +backup=() +options=() +install= +source=('apfs-fuse::git+https://github.com/sgan81/apfs-fuse') +noextract=() +md5sums=('SKIP') + +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 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" +} |