aboutsummaryrefslogtreecommitdiffstats
path: root/testing/zchunk/APKBUILD
blob: f27a6d9eae1051983311246693f2d8bd46293f98 (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
47
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=zchunk
pkgver=1.1.2
pkgrel=0
pkgdesc="File format for highly efficient deltas"
url="https://github.com/zchunk/zchunk"
arch="all !armhf" # Restricted by zstd
license="BSD-2-Clause"
makedepends="
	meson
	zstd-dev
	curl-dev
	openssl-dev
	argp-standalone
	"
subpackages="$pkgname-dev lib$pkgname:libs"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/zchunk/zchunk/archive/${pkgver}.tar.gz
	fix-musl.patch
	"

build() {
	LDFLAGS="$LDFLAGS -largp" \
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		-Dwith-zstd=enabled \
		-Dwith-openssl=enabled \
		-Dcoverity=false \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="2a03dd0690b6ab73dbc13f9203d5535e0f159e758d34e95937000537892cb193426b2f25f771b1fac35dc9bc36f4c2cde213cba0af27634c6f2c81ccffc1fae7  zchunk-1.1.2.tar.gz
d35f72d42d5d00189ad732f232b8eee5a347832517229bc9272acf98edb0886a6b581c801005f61a054d70b35c457e9ca0fd3dee524958c92eaf5ea80f40d68a  fix-musl.patch"