diff --git a/srcpkgs/lowdown/files/configure.glibc b/srcpkgs/lowdown/files/configure.glibc index 8347d66c265..a212f75c1f5 100644 --- a/srcpkgs/lowdown/files/configure.glibc +++ b/srcpkgs/lowdown/files/configure.glibc @@ -18,6 +18,8 @@ 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 diff --git a/srcpkgs/lowdown/files/configure.musl b/srcpkgs/lowdown/files/configure.musl index cd43518cf67..d0b4fb0809a 100644 --- a/srcpkgs/lowdown/files/configure.musl +++ b/srcpkgs/lowdown/files/configure.musl @@ -18,6 +18,8 @@ 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 diff --git a/srcpkgs/lowdown/patches/ldflags.patch b/srcpkgs/lowdown/patches/ldflags.patch deleted file mode 100644 index f5bb6e4a950..00000000000 --- a/srcpkgs/lowdown/patches/ldflags.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 04a9e2f44d90f7b397716bb50d55e53e6ed8367c Mon Sep 17 00:00:00 2001 -From: Duncaen -Date: Fri, 9 Mar 2018 18:53:12 +0100 -Subject: [PATCH] use LDFLAGS in Makefile - ---- - Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Makefile b/Makefile -index 9a124cc..0a422c3 100644 ---- Makefile -+++ Makefile -@@ -62,7 +62,7 @@ installwww: www - install -m 0444 lowdown.tar.gz.sha512 $(WWWDIR)/snapshots - - lowdown: liblowdown.a main.o -- $(CC) -o $@ main.o liblowdown.a -lm -+ $(CC) -o $@ main.o liblowdown.a $(LDFLAGS) -lm - - lowdown-diff: lowdown - ln -f lowdown lowdown-diff ---- configure.orig -+++ configure -@@ -65,7 +65,7 @@ - CFLAGS="${CFLAGS} -Wwrite-strings -Wno-unused-parameter" - LDADD= - CPPFLAGS= --LDFLAGS= -+LDFLAGS=`printf "all:\\n\\t@echo \\\$(LDFLAGS)\\n" | make -sf -` - PREFIX="/usr/local" - BINDIR= - SBINDIR= diff --git a/srcpkgs/lowdown/template b/srcpkgs/lowdown/template index 2fc71c1244c..55e3322c972 100644 --- a/srcpkgs/lowdown/template +++ b/srcpkgs/lowdown/template @@ -1,18 +1,16 @@ # Template file for 'lowdown' pkgname=lowdown -version=0.3.1 -revision=2 -wrksrc="${pkgname}-VERSION_${version//./_}" -configure_args="PREFIX=/usr MANDIR=/usr/share/man" -build_style=configure +version=0.3.2 +revision=1 +build_style=gnu-makefile short_desc="Simple markdown translator" maintainer="Duncaen " license="ISC" homepage="https://kristaps.bsd.lv/lowdown/" -distfiles="https://github.com/kristapsdz/lowdown/archive/VERSION_${version//./_}.tar.gz" -checksum=af1fe2904dd543e46ff2b19ccd601df053986f3913d5abf68ac9c62da50754ec +distfiles="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${version}.tar.gz" +checksum="740cf6025c43ceaae9bcc1ffc3e94986aa62d65d91ef8173d444a1977c562094" -pre_configure() { +do_configure() { local _libc=glibc case "$XBPS_TARGET_MACHINE" in *-musl) _libc=musl ;; @@ -20,6 +18,7 @@ pre_configure() { if [ -n "$CROSS_BUILD" ]; then cp "${FILESDIR}/configure.$_libc" configure.local fi + ./configure PREFIX=/usr MANDIR=/usr/share/man } post_install() {