void-packages/srcpkgs/squashfs-tools/template

27 lines
780 B
Plaintext
Raw Normal View History

# Template file for 'squashfs-tools'
pkgname=squashfs-tools
version=4.2
2014-02-17 09:13:00 +01:00
revision=4
wrksrc="squashfs${version}"
makedepends="zlib-devel lzo-devel liblzma-devel"
2013-03-21 18:12:38 +01:00
license="GPL"
homepage="http://squashfs.sf.net/"
2010-06-04 13:50:58 +02:00
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
do_build() {
cd ${wrksrc}/${pkgname}
2010-10-26 16:33:01 +02: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 18:12:38 +01:00
make ${makejobs} LZMA_XZ_SUPPORT=1
2010-10-26 16:33:01 +02:00
}
do_install() {
cd ${wrksrc}/${pkgname}
2014-02-17 09:13:00 +01:00
vmkdir usr/bin
2010-10-26 16:33:01 +02:00
install -m755 {mk,un}squashfs ${DESTDIR}/usr/bin
}