blob: c290b6f90f663c3ac15b85d4937c3c42836aa302 (
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.3
pkgrel=0
pkgdesc="File format for highly efficient deltas"
url="https://github.com/zchunk/zchunk"
arch="all"
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="564c2e2718ae2e50d1fa32a99ddfb126685abb1050b3884803c89e78a94d5b265cec1cd0ddbff927cdc2bab1d7c15971244f525081ca4d8d9581675e3e16fd5b zchunk-1.1.3.tar.gz
d35f72d42d5d00189ad732f232b8eee5a347832517229bc9272acf98edb0886a6b581c801005f61a054d70b35c457e9ca0fd3dee524958c92eaf5ea80f40d68a fix-musl.patch"
|