2008-12-16 22:17:40 +00:00
|
|
|
# Template file for 'squashfs-tools'
|
|
|
|
pkgname=squashfs-tools
|
2011-03-11 07:15:26 +00:00
|
|
|
version=4.2
|
2013-03-21 18:33:12 +00:00
|
|
|
revision=3
|
2013-03-24 09:21:58 +00:00
|
|
|
wrksrc="squashfs${version}"
|
2013-03-21 18:33:12 +00:00
|
|
|
makedepends="zlib-devel lzo-devel liblzma-devel"
|
2013-03-21 17:12:38 +00:00
|
|
|
license="GPL"
|
|
|
|
homepage="http://squashfs.sf.net/"
|
2010-06-04 11:50:58 +00:00
|
|
|
short_desc="Tool to create and append to squashfs filesystems"
|
2008-12-16 22:17:40 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-21 18:33:12 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
|
2011-03-11 07:15:26 +00:00
|
|
|
checksum=d9e0195aa922dbb665ed322b9aaa96e04a476ee650f39bbeadb0d00b24022e96
|
2008-12-16 22:17:40 +00:00
|
|
|
long_desc="
|
2009-04-18 22:41:54 +00:00
|
|
|
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib
|
2008-12-16 22:17:40 +00:00
|
|
|
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."
|
|
|
|
|
2013-03-21 18:33:12 +00:00
|
|
|
do_build() {
|
2011-03-11 07:15:26 +00:00
|
|
|
cd ${wrksrc}/${pkgname}
|
2010-10-26 14:33:01 +00:00
|
|
|
# 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
|
2013-03-21 17:12:38 +00:00
|
|
|
make ${makejobs} LZMA_XZ_SUPPORT=1
|
2010-10-26 14:33:01 +00:00
|
|
|
}
|
|
|
|
|
2013-03-21 18:33:12 +00:00
|
|
|
do_install() {
|
2011-03-11 07:15:26 +00:00
|
|
|
cd ${wrksrc}/${pkgname}
|
2010-10-26 14:33:01 +00:00
|
|
|
install -d ${DESTDIR}/usr/bin
|
|
|
|
install -m755 {mk,un}squashfs ${DESTDIR}/usr/bin
|
|
|
|
}
|
2013-04-14 10:31:59 +00:00
|
|
|
|
|
|
|
squashfs-tools_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|