From 89bcee4951dc012634e869967dbd4f902f95bea1 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 15 Oct 2015 09:55:52 +0200 Subject: [PATCH] picocom: fix non-musl (close #2741) --- srcpkgs/picocom/{patches => files}/fix-musl.patch | 0 srcpkgs/picocom/template | 8 +++++++- 2 files changed, 7 insertions(+), 1 deletion(-) rename srcpkgs/picocom/{patches => files}/fix-musl.patch (100%) diff --git a/srcpkgs/picocom/patches/fix-musl.patch b/srcpkgs/picocom/files/fix-musl.patch similarity index 100% rename from srcpkgs/picocom/patches/fix-musl.patch rename to srcpkgs/picocom/files/fix-musl.patch diff --git a/srcpkgs/picocom/template b/srcpkgs/picocom/template index 22cf9f1150..eb249e7f50 100644 --- a/srcpkgs/picocom/template +++ b/srcpkgs/picocom/template @@ -1,7 +1,7 @@ # Template file for 'picocom' pkgname=picocom version=2.0 -revision=1 +revision=2 short_desc="Minimal dumb-terminal emulation program like minicom" maintainer="allan " license="GPL-2" @@ -9,6 +9,12 @@ homepage="https://github.com/npat-efault/picocom" distfiles="https://github.com/npat-efault/picocom/archive/${version}.tar.gz" checksum=e0f7095c118f43c1c09787a16ef5c7d4c4ad4457dd3b1281efcc4cdb8906af9a +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + patch -p0 < ${FILESDIR}/fix-musl.patch + esac +} do_build() { make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs} }