diff --git a/srcpkgs/got/patches/cross.patch b/srcpkgs/got/patches/cross.patch new file mode 100644 index 0000000000..377a34c8c4 --- /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 index 2aa0701e86..36da438e26 100644 --- a/srcpkgs/got/template +++ b/srcpkgs/got/template @@ -4,7 +4,7 @@ version=0.69 revision=1 wrksrc=got-portable-${version} build_style=gnu-configure -hostmakedepends="byacc pkg-config" +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 " @@ -13,7 +13,11 @@ 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 + sed -n '/Copyright/,/PERFORMANCE/p' got/got.c > LICENSE vlicense LICENSE }