makedeb


dwarfs-bin 0.6.1-4


A fast high compression read-only file system (pre-compiled binaries)

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for dwarfs-bin.

# Maintainer: daci <dac1@fedora.email>
pkgname=dwarfs-bin
pkgver=0.6.1
pkgrel=4
pkgdesc='A fast high compression read-only file system (pre-compiled binaries)'
url='https://github.com/mhx/dwarfs'
source=("https://github.com/mhx/dwarfs/releases/download/v${pkgver}/dwarfs-${pkgver}-Linux.tar.xz")
arch=('amd64' 'aarch64')
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=('13442583cc27e577a0666ef24bbbc304cd38af8fb740e144ecdadf65d6f03048')

package() {
  cd "${srcdir}/dwarfs-${pkgver}-Linux"
  install -Dm755 bin/dwarfsbench "${pkgdir}/usr/bin/dwarfsbench"
  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"
}