### this file is sourced not run
PKGVER=4.5.1
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=squashfs$PKGVER.tar.gz
MD5SUM=edc3e14508f2716315787b9c88d163a1
#SRC_URL=http://downloads.sourceforge.net/squashfs/$TARBALL
SRC_URL=https://github.com/plougher/squashfs-tools/archive/refs/tags/${PKGVER}.tar.gz
BUNDLE=

SLACKREQ=xz
SLACKDESC="squashfs-tools: squashfs-tools $PKGVER (SquashFS utilities)  
squashfs-tools:  
squashfs-tools: Squashfs is a compressed read-only filesystem for Linux. 
squashfs-tools: Squashfs is intended for general read-only filesystem use, for 
squashfs-tools: archival use (i.e. in cases where a .tar.gz file may be used), 
squashfs-tools: and in constrained block device/memory systems (e.g. embedded 
squashfs-tools: systems) where low overhead is needed. This package provides 
squashfs-tools: utilites to create, view and unpack files from SquashFS 
squashfs-tools: filesystems.  
squashfs-tools: 
squashfs-tools: https://github.com/plougher/squashfs-tools/
"

### default pkg_download
### prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/squashfs*/squashfs* &&

	make $MAKEFLAGS XZ_SUPPORT=1 LZO_SUPPORT=1 LZ4_SUPPORT=1 LZMA_XZ_SUPPORT=1 ZSTD_SUPPORT=1 &&
	make install INSTALL_DIR=/usr/bin INSTALL_MANPAGES_DIR=/usr/share/man/man1 &&

	# docs
	cd .. &&
	mkdir -p /usr/share/doc/squashfs-$PKGVER &&
	install -m644 RELEASE-READMEs/pseudo-file.example README-$PKGVER \
		/usr/share/doc/squashfs-$PKGVER &&

	pkg_build_slackdesc
}


