From fbc6fcdfcf3a1bdc946f1bfdf8ee8b4f7a474ee0 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.70 --- 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 00000000000..377a34c8c47 --- /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 00000000000..4c0b09d07b0 --- /dev/null +++ b/srcpkgs/got/template @@ -0,0 +1,23 @@ +# Template file for 'got' +pkgname=got +version=0.70 +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="2e534ed89f794a61543e6d2cb306903ea04f93977ed241004585c6b85e8b074e" + +pre_configure() { + autoreconf -fi +} + +post_install() { + sed -n '/Copyright/,/PERFORMANCE/p' got/got.c > LICENSE + vlicense LICENSE +}