Date: Monday, July 26, 2021 @ 17:52:37 Author: dvzrv Revision: 420424
community2extra: Moving squashfs-tools from community to extra Added: squashfs-tools/ squashfs-tools/repos/ squashfs-tools/trunk/ squashfs-tools/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: squashfs-tools/trunk/PKGBUILD =================================================================== --- squashfs-tools/trunk/PKGBUILD (rev 0) +++ squashfs-tools/trunk/PKGBUILD 2021-07-26 17:52:37 UTC (rev 420424) @@ -0,0 +1,38 @@ +# Maintainer: Sergej Pupykin <[email protected]> +# Maintainer: Aaron Griffin <[email protected]> +# Original TU: Jeff Mickey <[email protected]> +# Contributor: ciccio.a + +pkgname=squashfs-tools +pkgver=4.4_git.1 +pkgrel=1 +pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux." +url="https://github.com/plougher/squashfs-tools" +license=("GPL") +arch=('x86_64') +depends=('zlib' 'lzo' 'xz' 'lz4' 'zstd') +makedepends=('git') +source=("git+https://github.com/plougher/squashfs-tools#tag=${pkgver/_/-}") +sha256sums=('SKIP') + +prepare() { + cd "$srcdir"/${pkgname}/${pkgname} + sed -i '1,1i#include <sys/sysmacros.h>' mksquashfs.c unsquashfs.c +} + +build() { + cd "$srcdir"/${pkgname}/${pkgname} + make \ + GZIP_SUPPORT=1 \ + XZ_SUPPORT=1 \ + LZO_SUPPORT=1 \ + LZMA_XZ_SUPPORT=1 \ + LZ4_SUPPORT=1 \ + ZSTD_SUPPORT=1 \ + XATTR_SUPPORT=1 +} + +package() { + cd "$srcdir"/${pkgname}/${pkgname} + make install INSTALL_DIR="${pkgdir}"/usr/bin +}
