From 89f6b67a65828c33d9e8a307d7c91242f61980bd Mon Sep 17 00:00:00 2001 From: cr6git Date: Sat, 11 Aug 2018 20:51:03 +0200 Subject: [PATCH] New package: zchunk-0.9.6 (#1422) --- srcpkgs/zchunk/patches/001-musl.patch | 7 +++++++ srcpkgs/zchunk/patches/002-musl.patch | 12 ++++++++++++ srcpkgs/zchunk/template | 25 +++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 srcpkgs/zchunk/patches/001-musl.patch create mode 100644 srcpkgs/zchunk/patches/002-musl.patch create mode 100644 srcpkgs/zchunk/template diff --git a/srcpkgs/zchunk/patches/001-musl.patch b/srcpkgs/zchunk/patches/001-musl.patch new file mode 100644 index 0000000000..6704b06010 --- /dev/null +++ b/srcpkgs/zchunk/patches/001-musl.patch @@ -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 + #ifndef ZCK_H + #define ZCK_H + diff --git a/srcpkgs/zchunk/patches/002-musl.patch b/srcpkgs/zchunk/patches/002-musl.patch new file mode 100644 index 0000000000..23b1191797 --- /dev/null +++ b/srcpkgs/zchunk/patches/002-musl.patch @@ -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 + + #include "util_common.h" +- ++#undef stdout + static char doc[] = "unzck - Decompress a zchunk file"; + + static char args_doc[] = ""; + diff --git a/srcpkgs/zchunk/template b/srcpkgs/zchunk/template new file mode 100644 index 0000000000..3e3a23adfc --- /dev/null +++ b/srcpkgs/zchunk/template @@ -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 " +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 +}