From 5ec7cda08d170093b15591f7d84963b6124ff540 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 18 Jun 2018 17:31:38 +0200 Subject: [PATCH] New package: libdiff-0.1.0 --- srcpkgs/libdiff/files/configure.glibc | 26 ++++++++++++++++++++++++++ srcpkgs/libdiff/files/configure.musl | 26 ++++++++++++++++++++++++++ srcpkgs/libdiff/template | 26 ++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 srcpkgs/libdiff/files/configure.glibc create mode 100644 srcpkgs/libdiff/files/configure.musl create mode 100644 srcpkgs/libdiff/template diff --git a/srcpkgs/libdiff/files/configure.glibc b/srcpkgs/libdiff/files/configure.glibc new file mode 100644 index 0000000000..a212f75c1f --- /dev/null +++ b/srcpkgs/libdiff/files/configure.glibc @@ -0,0 +1,26 @@ +HAVE_ARC4RANDOM=0 +HAVE_CAPSICUM=0 +HAVE_ERR=1 +HAVE_EXPLICIT_BZERO=1 +HAVE_GETPROGNAME=0 +HAVE_INFTIM=0 +HAVE_MD5=0 +HAVE_MEMMEM=1 +HAVE_MEMRCHR=1 +HAVE_MEMSET_S=0 +HAVE_PATH_MAX=1 +HAVE_PLEDGE=0 +HAVE_PROGRAM_INVOCATION_SHORT_NAME=1 +HAVE_REALLOCARRAY=0 +HAVE_RECALLOCARRAY=0 +HAVE_SANDBOX_INIT=0 +HAVE_SECCOMP_FILTER=1 +HAVE_SOCK_NONBLOCK=1 +HAVE_STRLCAT=0 +HAVE_STRLCPY=0 +HAVE_STRNDUP=1 +HAVE_STRNLEN=1 +HAVE_STRTONUM=0 +HAVE_SYSTRACE=0 +HAVE_ZLIB=0 +HAVE___PROGNAME=1 diff --git a/srcpkgs/libdiff/files/configure.musl b/srcpkgs/libdiff/files/configure.musl new file mode 100644 index 0000000000..d0b4fb0809 --- /dev/null +++ b/srcpkgs/libdiff/files/configure.musl @@ -0,0 +1,26 @@ +HAVE_ARC4RANDOM=0 +HAVE_CAPSICUM=0 +HAVE_ERR=1 +HAVE_EXPLICIT_BZERO=0 +HAVE_GETPROGNAME=0 +HAVE_INFTIM=0 +HAVE_MD5=0 +HAVE_MEMMEM=1 +HAVE_MEMRCHR=1 +HAVE_MEMSET_S=0 +HAVE_PATH_MAX=1 +HAVE_PLEDGE=0 +HAVE_PROGRAM_INVOCATION_SHORT_NAME=1 +HAVE_REALLOCARRAY=0 +HAVE_RECALLOCARRAY=0 +HAVE_SANDBOX_INIT=0 +HAVE_SECCOMP_FILTER=1 +HAVE_SOCK_NONBLOCK=1 +HAVE_STRLCAT=1 +HAVE_STRLCPY=1 +HAVE_STRNDUP=1 +HAVE_STRNLEN=1 +HAVE_STRTONUM=0 +HAVE_SYSTRACE=0 +HAVE_ZLIB=0 +HAVE___PROGNAME=1 diff --git a/srcpkgs/libdiff/template b/srcpkgs/libdiff/template new file mode 100644 index 0000000000..1419cc2def --- /dev/null +++ b/srcpkgs/libdiff/template @@ -0,0 +1,26 @@ +# Template file for 'libdiff' +pkgname=libdiff +version=0.1.0 +revision=1 +build_style=gnu-makefile +short_desc="Library to generate arbitrary sequence diffs" +maintainer="Duncaen " +license="MIT" +homepage="https://github.com/kristapsdz/libdiff" +distfiles="https://kristaps.bsd.lv/libdiff/snapshots/libdiff-${version}.tar.gz" +checksum=2012d2eae9ecaf9717c77ecefd9bdff4e38f485d8b9ad8f916cff1fdf1151512 + +do_configure() { + local _libc=glibc + case "$XBPS_TARGET_MACHINE" in + *-musl) _libc=musl ;; + esac + if [ -n "$CROSS_BUILD" ]; then + cp "${FILESDIR}/configure.$_libc" configure.local + fi + ./configure PREFIX=/usr MANDIR=/usr/share/man +} + +post_install() { + vlicense LICENSE.md +}