mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 07:02:29 +01:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
# 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"
|