1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-28 17:42:47 +00:00
dotfiles/arch/dwarfs-universal

39 lines
1.8 KiB
Plaintext
Raw Normal View History

2024-10-25 16:18:45 +00:00
# Maintainer: phantop <phantop@tuta.io>
pkgname=dwarfs-universal
pkgver=0.10.1
pkgrel=1
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-${CARCH}-clang.tar.xz"
"https://github.com/mhx/dwarfs/releases/download/v${pkgver}/dwarfs-universal-${pkgver}-Linux-${CARCH}-clang"
"https://github.com/mhx/dwarfs/raw/main/scripts/extract_blocks.py")
arch=('x86_64' 'aarch64')
license=('GPL3')
depends=( 'fuse3' )
conflicts=('dwarfs')
provides=('dwarfs')
package() {
install -Dm755 "${srcdir}/dwarfs-universal-${pkgver}-Linux-${CARCH}-clang" "${pkgdir}/usr/bin/dwarfsuniversal"
install -Dm755 "${srcdir}/extract_blocks.py" "${pkgdir}/usr/bin/dwarfsblocks"
ln -s dwarfsuniversal "${pkgdir}/usr/bin/dwarfsck"
ln -s dwarfsuniversal "${pkgdir}/usr/bin/dwarfsextract"
ln -s dwarfsuniversal "${pkgdir}/usr/bin/mkdwarfs"
ln -s dwarfsuniversal "${pkgdir}/usr/bin/dwarfs"
# mount will just run dwarfsuniversal otherwise
printf '#!/bin/sh\ndwarfs "$@"' > "${pkgdir}/usr/bin/mount.dwarfs"
chmod 755 "${pkgdir}/usr/bin/mount.dwarfs"
cd "${srcdir}/dwarfs-${pkgver}-Linux-${CARCH}-clang"
install -Dm644 share/man/man1/dwarfs.1 "$pkgdir/usr/share/man/man1/dwarfs.1"
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"
}
# update by removing and running `makepkg -g >> PKGBUILD`
sha256sums=('SKIP'
'SKIP'
'SKIP')