pkgname=squashfs-tools pkgver=4.6.1 pkgrel=1 pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux" arch=('x86_64') url="https://github.com/plougher/squashfs-tools" license=('GPL-2.0-or-later') depends=( 'glibc' 'gcc-libs' 'lz4' 'lzo' 'xz' 'zlib' 'zstd' ) source=(https://github.com/plougher/squashfs-tools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(94201754b36121a9f022a190c75f718441df15402df32c2b520ca331a107511c) build() { cd ${pkgname}-${pkgver}/${pkgname} export CC="${CHOST}-gcc" export CXX="${CHOST}-g++" make GZIP_SUPPORT=1 \ LZ4_SUPPORT=1 \ LZMA_XZ_SUPPORT=1 \ LZO_SUPPORT=1 \ XATTR_SUPPORT=1 \ XZ_SUPPORT=1 \ ZSTD_SUPPORT=1 } package() { cd ${pkgname}-${pkgver}/${pkgname} make INSTALL_PREFIX=${pkgdir}/usr install }