summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b278ea74fd816d7e8a6fe0b514c40e02aff558e2 (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
41
pkgname=sasquatch-git
pkgrel=1
pkgver=r60.bd864a1
pkgdesc='Patched unsquashfs utility with support for vendor-specific SquashFS implementations.'
arch=('x86_64')
url='https://github.com/devttys0/sasquatch'
license=('unknown')
depends=('lzo' 'xz' 'zlib')
makedepends=('git')
provides=('sasquatch')
conflicts=('sasquatch')
source=("${pkgname}"::'git+'$url'.git'
        0001-No-install.patch
        0002-Make_build_gcc_10_compatible.patch
        0003-No-Werror.patch)
sha512sums=('SKIP'
            'c94ebf6c2274b81fa749b226d04804d0f1d0e20b6579f74717584abbf5590bfa68e13b31163aa69ab6b5e5f214a30b8ce74115ea343bede05ddf8ae19008d37b'
            '9f61b5052f6daa0ef84f08426d420d1a308b149cf8b7bae30566dd85c825b9c7fcd90ec4833f075d0244076894e2572212ad1bc33f018adbe043fed54657c2b2'
            '8f92c3589b3d74d611a2bff9b7a1933d8e2284c32dc460f060a2fc0232578bf4ca1852297180b674a3c1e63af6f2b664bf335c7224b7a6b95e464337bf222901')

prepare() {
	cd "$pkgname"
	patch -p1 < "${srcdir}/0001-No-install.patch"
	patch -p1 < "${srcdir}/0002-Make_build_gcc_10_compatible.patch"
	patch -p1 < "${srcdir}/0003-No-Werror.patch"
}

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${pkgname}"
	./build.sh
}

package() {
	cd "${srcdir}/${pkgname}/squashfs"*"/squashfs-tools/"
	install -D -m0755 sasquatch ${pkgdir}/usr/local/bin/sasquatch
}