blob: ebbdf40f69699b39b6b37dbcfa990c495da2a180 (
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
29
30
31
32
33
34
35
36
37
38
39
40
|
# $Id$
# Maintainer: Mikuro Kagamine <mikurok@forgecrushing.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Aaron Griffin <aaron@archlinux.org>
# Original TU: Jeff Mickey <j@codemac.net>
# Contributor: ciccio.a
pkgname=squashfs-tools-git
_pkgbasename=squashfs-tools
pkgver=1935.c570c61
pkgrel=1
pkgdesc="Tools for squashfs, a highly compressed read-only filesystem for Linux."
url="https://github.com/plougher/squashfs-tools"
license=("GPL2")
arch=('x86_64')
depends=('zlib' 'lzo' 'xz' 'lz4' 'zstd')
conflicts=('squashfs-tools')
provides=('squashfs-tools')
source=("squashfs-tools::git+https://github.com/plougher/squashfs-tools.git")
sha512sums=('SKIP')
pkgver() {
cd ${_pkgbasename}
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
prepare() {
cd "${srcdir}"/${_pkgbasename}
}
build() {
cd "$srcdir"/${_pkgbasename}/${_pkgbasename}
CFLAGS="$CFLAGS -O2" make XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1 GZIP_SUPPORT=1 XATTR_SUPPORT=1
}
package() {
cd "$srcdir"/${_pkgbasename}/${_pkgbasename}
install -Dm755 mksquashfs "$pkgdir"/usr/bin/mksquashfs
install -m755 unsquashfs "$pkgdir"/usr/bin/unsquashfs
}
|