summaryrefslogtreecommitdiff
path: root/system/zstd/APKBUILD
blob: 93fb1ab1a841cb7f4f87c6ee0ce454af8f9f5b3f (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=zstd
pkgver=1.5.2
pkgrel=0
pkgdesc="Fast real-time compression algorithm"
url="https://facebook.github.io/zstd/"
arch="all"
license="BSD-3-Clause AND GPL-2.0-only"
depends=""
checkdepends="file"
makedepends="lz4-dev xz-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/facebook/zstd/releases/download/v$pkgver/zstd-$pkgver.tar.gz"

# secfixes:
#   1.5.2-r0:
#     - CVE-2021-24032

build() {
	make PREFIX="/usr"
}

check() {
	make PREFIX="/usr" check
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir" install
}

sha512sums="96dbd2eb6623e3564a0fd36489b61bc3cb27758a584fdc9f064f3985d2e8b5605d7022890d00a6d15464d3cd0707d7e75d8cf6210323782d0af406b90a6d6784  zstd-1.5.2.tar.gz"