New package: zchunk-0.9.6 (#1422)

This commit is contained in:
cr6git 2018-08-11 20:51:03 +02:00 committed by GitHub
parent 0c6110f48f
commit 89f6b67a65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,7 @@
--- include/zck.h.in.orig 2018-08-03 07:08:45.140103751 +0200
+++ include/zck.h.in 2018-08-03 07:09:18.613105487 +0200
@@ -1,3 +1,4 @@
+#include <sys/types.h>
#ifndef ZCK_H
#define ZCK_H

View file

@ -0,0 +1,12 @@
--- src/unzck.c 2018-08-02 15:42:19.000000000 +0200
+++ - 2018-08-04 20:20:53.438164577 +0200
@@ -39,7 +39,7 @@
#include <zck.h>
#include "util_common.h"
-
+#undef stdout
static char doc[] = "unzck - Decompress a zchunk file";
static char args_doc[] = "<file>";

25
srcpkgs/zchunk/template Normal file
View file

@ -0,0 +1,25 @@
# Template file for 'zchunk'
pkgname=zchunk
version=0.9.6
revision=1
build_style=meson
hostmakedepends="pkg-config"
makedepends="libcurl-devel libzstd-devel"
short_desc="Compressed file format that splits the file into independent chunks"
maintainer="cr6git <quark6@protonmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/zchunk/zchunk"
distfiles="https://github.com/zchunk/zchunk/archive/${version}.tar.gz"
checksum=1fd071c49eba30c6e5a56ec11834834f21af74502a061a7d0b8ad0098579828f
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" argp-standalone"
LDFLAGS="-largp"
;;
esac
post_install() {
rm -rf ${DESTDIR}/usr/include
rm -rf ${DESTDIR}/usr/lib/pkgconfig
vlicense LICENSE
}