# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Original TU: Jeff Mickey <j@codemac.net>
# Contributor: ciccio.a

pkgname=squashfs-tools
pkgver=4.3
pkgrel=4
pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux."
url="http://squashfs.sourceforge.net"
license=("GPL")
arch=('i686' 'x86_64')
depends=('zlib' 'lzo' 'xz' 'lz4')
source=("http://downloads.sourceforge.net/sourceforge/squashfs/squashfs${pkgver}.tar.gz")
md5sums=('d92ab59aabf5173f2a59089531e30dbf')

build() {
    cd ${srcdir}/squashfs${pkgver}/${pkgname}
    make XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1
}

package() {
    cd ${srcdir}/squashfs${pkgver}/${pkgname}
    install -Dm755 mksquashfs ${pkgdir}/usr/bin/mksquashfs
    install -m755 unsquashfs ${pkgdir}/usr/bin/unsquashfs
}