2024-10-25 16:18:45 +00:00
|
|
|
# Maintainer: phantop <phantop@tuta.io>
|
|
|
|
pkgname=dwarfs-universal
|
2025-05-23 04:20:00 +00:00
|
|
|
pkgver=0.12.4
|
2024-10-25 16:18:45 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='A fast high compression read-only file system (pre-compiled binaries)'
|
|
|
|
url='https://github.com/mhx/dwarfs'
|
2025-04-22 20:57:16 +00:00
|
|
|
source=("https://github.com/mhx/dwarfs/releases/download/v${pkgver}/dwarfs-${pkgver}-Linux-${CARCH}.tar.xz"
|
|
|
|
"https://github.com/mhx/dwarfs/releases/download/v${pkgver}/dwarfs-universal-${pkgver}-Linux-${CARCH}"
|
2024-10-25 16:18:45 +00:00
|
|
|
"https://github.com/mhx/dwarfs/raw/main/scripts/extract_blocks.py")
|
|
|
|
arch=('x86_64' 'aarch64')
|
|
|
|
license=('GPL3')
|
|
|
|
depends=( 'fuse3' )
|
|
|
|
conflicts=('dwarfs')
|
|
|
|
provides=('dwarfs')
|
|
|
|
|
|
|
|
package() {
|
2025-04-22 20:57:16 +00:00
|
|
|
install -Dm755 "${srcdir}/dwarfs-universal-${pkgver}-Linux-${CARCH}" "${pkgdir}/usr/bin/dwarfsuniversal"
|
2024-10-25 16:18:45 +00:00
|
|
|
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"
|
|
|
|
|
2025-04-22 20:57:16 +00:00
|
|
|
cd "${srcdir}/dwarfs-${pkgver}-Linux-${CARCH}"
|
2024-10-25 16:18:45 +00:00
|
|
|
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')
|