archrelease: copy trunk to extra-x86_64
[arch-packages.git] / squashfs-tools / trunk / PKGBUILD
blob90248deef4185c19fd1ddc9ab1126756ffb56971
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Aaron Griffin <aaron@archlinux.org>
4 # Original TU: Jeff Mickey <j@codemac.net>
5 # Contributor: ciccio.a
7 pkgname=squashfs-tools
8 pkgver=4.6.1
9 pkgrel=1
10 pkgdesc='Tools for squashfs, a highly compressed read-only filesystem for Linux'
11 arch=(x86_64)
12 url='https://github.com/plougher/squashfs-tools'
13 license=(GPL2)
14 depends=(
15   glibc
16   gcc-libs
17   lz4
18   lzo
19   xz
20   zlib
21   zstd
23 makedepends=(help2man)
24 source=($url/archive/$pkgver/$pkgname-$pkgver.tar.gz)
25 sha512sums=('10e8a4b1e2327e062aef4f85860e76ebcd7a29e4c19e152ff7edec4a38316982b5bcfde4ab69da6bcb931258d264c2b6cb40cb5f635f9e6f6eba1ed5976267cb')
26 b2sums=('05e38681de219413573e8b1a7f36d2f7e87734f68a929ecdeb5ae6017076fbfd67b897448980e047689ef4b154d2dcd1a90162367a6a5babab45f1ef36f09325')
28 build() {
29   local make_options=(
30     GZIP_SUPPORT=1
31     LZ4_SUPPORT=1
32     LZMA_XZ_SUPPORT=1
33     LZO_SUPPORT=1
34     XATTR_SUPPORT=1
35     XZ_SUPPORT=1
36     ZSTD_SUPPORT=1
37     -C $pkgname-$pkgver/$pkgname
38   )
40   make "${make_options[@]}"
43 package() {
44   local make_options=(
45     INSTALL_PREFIX="$pkgdir/usr"
46     INSTALL_MANPAGES_DIR='$(INSTALL_PREFIX)/share/man/man1'
47     install
48     -C $pkgname-$pkgver/$pkgname
49   )
51   make "${make_options[@]}"
52   install -vDm 644 $pkgname-$pkgver/{ACTIONS-README,CHANGES,"README-$pkgver",USAGE*} -t "$pkgdir/usr/share/doc/$pkgname/"