/
PKGBUILD
36 lines (30 loc) · 904 Bytes
/
PKGBUILD
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
# Maintainer: ArchStrike <team@archstrike.org>
# Contributor: Tim Jester-Pfadt <t.jp@gmx.de>
buildarch=220
pkgname=squashfuse-git
pkgver=20210403.r406
pkgrel=1
groups=('archstrike' 'archstrike-misc')
pkgdesc="FUSE filesystem to mount squashfs archives"
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/vasi/squashfuse"
license=('BSD')
depends=('fuse' 'zlib' 'lzo' 'xz' 'lz4')
makedepends=('git' 'autoconf' 'automake' 'libtool')
source=("${pkgname}::git+${url}")
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "%s.r%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
autoreconf -fi
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}