summaryrefslogtreecommitdiffstats
path: root/abs/core/squashfs-tools/PKGBUILD
blob: 87a60db6bb46119a643a0249589e6581123b81b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 96914 2010-10-25 15:28:14Z pierre $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Original TU: Jeff Mickey <j@codemac.net>
# Contributor: ciccio.a

pkgname=squashfs-tools
pkgver=4.1
pkgrel=2
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' 'glibc' 'lzo2' 'xz')
source=("http://downloads.sourceforge.net/sourceforge/squashfs/squashfs${pkgver}.tar.gz")
md5sums=('8e1b2b96f5d5f3fe48fef226ae8cd341')

build() {
    cd ${srcdir}/squashfs${pkgver}/${pkgname}
    sed -i 's|^#XZ_SUPPORT = 1|XZ_SUPPORT = 1|' Makefile
    sed -i 's|^#LZO_SUPPORT = 1|LZO_SUPPORT = 1|' Makefile
    make || return 1
}

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