summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/zstd/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/zstd/APKBUILD b/user/zstd/APKBUILD
new file mode 100644
index 000000000..b930a1a1e
--- /dev/null
+++ b/user/zstd/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=zstd
+pkgver=1.3.7
+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=""
+depends_dev=""
+makedepends="$depends_dev 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"
+
+build() {
+ cd "$builddir"
+ make PREFIX="/usr"
+}
+
+check() {
+ cd "$builddir"
+ make PREFIX="/usr" check
+}
+
+package() {
+ cd "$builddir"
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
+}
+
+sha512sums="fb9ac61b79b22a628e602e68f7c59c85a00020f7f25b8653076895da7589ca1203adc7fe3d9b865f36648bc30d765b9630cf0955f970596253da74c089b97af1 zstd-1.3.7.tar.gz"