# Maintainer: daci pkgname=dwarfs-bin pkgver=0.10.0 pkgrel=1 pkgdesc='A fast high compression read-only file system (pre-compiled binaries)' url='https://github.com/mhx/dwarfs' source=("dwarfs-${pkgver}-Linux-x86_64.tar.xz::https://github.com/mhx/dwarfs/releases/download/v${pkgver}/dwarfs-${pkgver}-Linux-x86_64-clang.tar.xz") arch=('amd64') license=('GPL3') depends=( 'fuse3' 'openssl' 'libboost-system1.74.0|libboost-system1.71.0' 'libboost-program-options1.74.0|libboost-program-options1.71.0' 'libjemalloc2' 'xxhash' 'lz4' 'xz-utils' 'zstd' 'libarchive13' 'libunwind8' 'libgoogle-glog0v5|libgoogle-glog0v6|libgoogle-glog-dev' 'libfmt7|libfmt8|libfmt-dev' 'libgflags2.2' 'libdouble-conversion3' ) conflicts=('dwarfs' 'dwarfs-git') provides=('dwarfs') sha256sums=('53f02da7ff7fe484b3bb91e6532987c3fb59db28131309ccbb46d2c2c9cec9ce') package() { cd "${srcdir}/dwarfs-${pkgver}-Linux-x86_64-clang" install -Dm755 bin/pxattr "${pkgdir}/usr/bin/pxattr" install -Dm755 bin/dwarfsck "${pkgdir}/usr/bin/dwarfsck" install -Dm755 bin/dwarfsextract "${pkgdir}/usr/bin/dwarfsextract" install -Dm755 bin/mkdwarfs "${pkgdir}/usr/bin/mkdwarfs" install -Dm755 sbin/dwarfs "${pkgdir}/usr/bin/dwarfs" ln -s dwarfs "${pkgdir}/usr/bin/mount.dwarfs" install -Dm644 share/man/man1/dwarfs.1 "$pkgdir/usr/share/man/man1/dwarfs.1" install -Dm755 sbin/dwarfs2 "${pkgdir}/usr/bin/dwarfs2" ln -s dwarfs2 "${pkgdir}/usr/bin/mount.dwarfs2" install -Dm644 share/man/man1/dwarfsck.1 "$pkgdir/usr/share/man/man1/dwarfsck.1" install -Dm644 share/man/man1/dwarfsextract.1 "$pkgdir/usr/share/man/man1/dwarfsextract.1" install -Dm644 share/man/man1/mkdwarfs.1 "$pkgdir/usr/share/man/man1/mkdwarfs.1" install -Dm644 share/man/man5/dwarfs-format.5 "$pkgdir/usr/share/man/man5/dwarfs-format.5" }