void-packages/srcpkgs/squashfs-tools/template

42 lines
1.4 KiB
Text

# Template file for 'squashfs-tools'
pkgname=squashfs-tools
version=4.2
revision=3
wrksrc="squashfs${version}"
makedepends="zlib-devel lzo-devel liblzma-devel"
license="GPL"
homepage="http://squashfs.sf.net/"
short_desc="Tool to create and append to squashfs filesystems"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
checksum=d9e0195aa922dbb665ed322b9aaa96e04a476ee650f39bbeadb0d00b24022e96
long_desc="
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib
compression to compress both files, inodes and directories. Inodes in the
system are very small and all blocks are packed to minimise data overhead.
Block sizes greater than 4K are supported up to a maximum of 64K.
Squashfs is intended for general read-only filesystem use, for archival
use (i.e. in cases where a .tar.gz file may be used), and in constrained
block device/memory systems (e.g. embedded systems) where low overhead is
needed."
do_build() {
cd ${wrksrc}/${pkgname}
# Enable LZO and XZ support.
sed -i 's|^#XZ_SUPPORT = 1|XZ_SUPPORT = 1|' Makefile
sed -i 's|^#LZO_SUPPORT = 1|LZO_SUPPORT = 1|' Makefile
make ${makejobs} LZMA_XZ_SUPPORT=1
}
do_install() {
cd ${wrksrc}/${pkgname}
install -d ${DESTDIR}/usr/bin
install -m755 {mk,un}squashfs ${DESTDIR}/usr/bin
}
squashfs-tools_package() {
pkg_install() {
vmove usr
}
}