squashfs-tools: cross build and dbg support.

This commit is contained in:
Juan RP 2013-03-21 19:33:12 +01:00
parent 91aa8f1101
commit c83e30ae48

View file

@ -2,13 +2,15 @@
pkgname=squashfs-tools
version=4.2
wrksrc="squashfs${version}"
distfiles="${SOURCEFORGE_SITE}/squashfs/squashfs${version}.tar.gz"
revision=2
revision=3
makedepends="zlib-devel lzo-devel liblzma-devel"
crossmakedepends="${makedepends}"
license="GPL"
makedepends="zlib-devel lzo-devel liblzma-devel"
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
@ -21,8 +23,7 @@ long_desc="
block device/memory systems (e.g. embedded systems) where low overhead is
needed."
do_build()
{
do_build() {
cd ${wrksrc}/${pkgname}
# Enable LZO and XZ support.
sed -i 's|^#XZ_SUPPORT = 1|XZ_SUPPORT = 1|' Makefile
@ -30,8 +31,7 @@ do_build()
make ${makejobs} LZMA_XZ_SUPPORT=1
}
do_install()
{
do_install() {
cd ${wrksrc}/${pkgname}
install -d ${DESTDIR}/usr/bin
install -m755 {mk,un}squashfs ${DESTDIR}/usr/bin