aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pixz/APKBUILD
blob: b7248c9400919af8c7ac560c432348f21a7fffad (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
42
43
44
45
46
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=pixz
pkgver=1.0.6
pkgrel=0
pkgdesc="Parallel, indexed xz compressor"
url="https://github.com/vasi/pixz"
arch="all"
license="BSD-2-Clause"
depends=""
checkdepends="xz"
makedepends="libarchive-dev xz-dev
	automake autoconf libtool
	"
install=""
subpackages="$pkgname-doc"
source="https://github.com/vasi/pixz/releases/download/v$pkgver/pixz-$pkgver.tar.xz
	0001-use-posix-shell-for-tests.patch
	"
builddir="$srcdir/pixz-$pkgver"

build() {
	cd "$builddir"
	autoreconf -vif
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="361a8d8b736c350e4e3fd19b5d36777129a087eb81439d05edc08f9378938583bef8fc70e440ffd22efb6dad1f6494c6c3e532d7dd1ab12c9350b6078aa993d7  pixz-1.0.6.tar.xz
f9333adaefb8f6bae4bc1841185f6289b362895c46702e213392aae4954ec2fe81d169a21fcd5eec2d0f96d243ec4add1f8ae89dc6480f603231c954da47d4ed  0001-use-posix-shell-for-tests.patch"