From 84b13e9d0e5f1d39a65170f01dc6212be58967b9 Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 2 May 2022 16:31:36 +0000 Subject: [PATCH] New package: got-0.69 --- srcpkgs/got/patches/cross.patch | 18 ++++++++++++++++++ srcpkgs/got/template | 23 +++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/got/patches/cross.patch create mode 100644 srcpkgs/got/template diff --git a/srcpkgs/got/patches/cross.patch b/srcpkgs/got/patches/cross.patch new file mode 100644 index 000000000000..377a34c8c475 --- /dev/null +++ b/srcpkgs/got/patches/cross.patch @@ -0,0 +1,18 @@ +--- got-portable-0.69/configure.ac.orig ++++ got-portable-0.69/configure.ac +@@ -204,6 +204,7 @@ + [return (reallocarray(NULL, 1, 1) == NULL);] + )], + AC_MSG_RESULT(yes), ++ [AC_LIBOBJ(reallocarray) AC_MSG_RESULT([no])], + [AC_LIBOBJ(reallocarray) AC_MSG_RESULT([no])] + ) + AC_MSG_CHECKING([for working recallocarray]) +@@ -212,6 +213,7 @@ + [return (recallocarray(NULL, 1, 1, 1) == NULL);] + )], + AC_MSG_RESULT(yes), ++ [AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])], + [AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])] + ) + diff --git a/srcpkgs/got/template b/srcpkgs/got/template new file mode 100644 index 000000000000..36da438e2662 --- /dev/null +++ b/srcpkgs/got/template @@ -0,0 +1,23 @@ +# Template file for 'got' +pkgname=got +version=0.69 +revision=1 +wrksrc=got-portable-${version} +build_style=gnu-configure +hostmakedepends="automake byacc pkg-config" +makedepends="libmd-devel zlib-devel libuuid-devel libbsd-devel ncurses-devel openssl-devel" +short_desc="VCS which prioritizes ease of use and simplicity over flexibility" +maintainer="Omar Polo " +license="ISC" +homepage="https://gameoftrees.org" +distfiles="https://gameoftrees.org/releases/portable/got-portable-${version}.tar.gz" +checksum="7583006e563b349e9bc6bdac70563b585a04d69e0715ad1e979f1b83a607d4b2" + +pre_configure() { + autoreconf -fi +} + +post_install() { + sed -n '/Copyright/,/PERFORMANCE/p' got/got.c > LICENSE + vlicense LICENSE +}