picocom: use patch instead of ed call.
This commit is contained in:
parent
313951d823
commit
662405406e
2 changed files with 12 additions and 9 deletions
12
srcpkgs/picocom/patches/fix-musl.patch
Normal file
12
srcpkgs/picocom/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -up term.c.orig term.c
|
||||
--- term.c.orig 2015-08-25 19:53:25.000000000 +0200
|
||||
+++ term.c 2015-08-30 11:40:05.723748387 +0200
|
||||
@@ -33,7 +33,7 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
-#include <termios.h>
|
||||
+#include <asm/termbits.h>
|
||||
#ifdef __linux__
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
|
@ -9,15 +9,6 @@ homepage="https://github.com/npat-efault/picocom"
|
|||
distfiles="https://github.com/npat-efault/picocom/archive/${version}.tar.gz"
|
||||
checksum=e0f7095c118f43c1c09787a16ef5c7d4c4ad4457dd3b1281efcc4cdb8906af9a
|
||||
|
||||
pre_build() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) ed term.c <<-EDIT
|
||||
,s:termios.h:asm/termbits.h:
|
||||
w
|
||||
q
|
||||
EDIT
|
||||
esac
|
||||
}
|
||||
do_build() {
|
||||
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue