mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
main/minicom: fix musl build
This commit is contained in:
parent
8b7a45a3ab
commit
5b7e2c737d
@ -2,7 +2,7 @@
|
||||
# Maintainer: Michael Mason <ms13sp@gmail.com>
|
||||
pkgname=minicom
|
||||
pkgver=2.6.2
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="menu driven communications program for terminals"
|
||||
url="http://alioth.debian.org/projects/minicom"
|
||||
arch="all"
|
||||
@ -11,14 +11,22 @@ depends=""
|
||||
makedepends="ncurses-dev libiconv-dev gettext-dev"
|
||||
install=""
|
||||
subpackages="$pkgname-doc $pkgname-lang"
|
||||
source="http://alioth.debian.org/frs/download.php/file/3869/minicom-$pkgver.tar.gz"
|
||||
source="http://alioth.debian.org/frs/download.php/file/3869/minicom-$pkgver.tar.gz
|
||||
fix-includes.patch
|
||||
"
|
||||
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
update_config_sub || return 1
|
||||
for i in $source; do
|
||||
case $i in
|
||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
./configure \
|
||||
@ -37,6 +45,9 @@ package() {
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
}
|
||||
|
||||
md5sums="203c56c4b447f45e2301b0cc4e83da3c minicom-2.6.2.tar.gz"
|
||||
sha256sums="f3cf215f7914ffa5528e398962176102ad74df27ba38958142f56aa6d15c9168 minicom-2.6.2.tar.gz"
|
||||
sha512sums="fa5d9de94707d6ab8cc647b35ab6ed00457abb85a2dd07e4853dd88381757d67c603e290f961bb24deb9a11ac0fc2e58cffcc67a6624571e3dd490cb3e4d04a7 minicom-2.6.2.tar.gz"
|
||||
md5sums="203c56c4b447f45e2301b0cc4e83da3c minicom-2.6.2.tar.gz
|
||||
6218cc85154a5ca11e7adee7df287769 fix-includes.patch"
|
||||
sha256sums="f3cf215f7914ffa5528e398962176102ad74df27ba38958142f56aa6d15c9168 minicom-2.6.2.tar.gz
|
||||
8f7e3da86757743f66602823df99eeab40bbcd36c4e0d270f4592fbae8f32f01 fix-includes.patch"
|
||||
sha512sums="fa5d9de94707d6ab8cc647b35ab6ed00457abb85a2dd07e4853dd88381757d67c603e290f961bb24deb9a11ac0fc2e58cffcc67a6624571e3dd490cb3e4d04a7 minicom-2.6.2.tar.gz
|
||||
5acff3efb0b8b02333291722044d7c473bf19eec8a26e66c0e0f41895f3e3f071dff13515ec20f7ce17368732e3674f0a42b38602e61b04e9cd70e61012641ff fix-includes.patch"
|
||||
|
||||
24
main/minicom/fix-includes.patch
Normal file
24
main/minicom/fix-includes.patch
Normal file
@ -0,0 +1,24 @@
|
||||
--- minicom-2.6.2.orig/src/dial.c
|
||||
+++ minicom-2.6.2/src/dial.c
|
||||
@@ -39,11 +39,9 @@
|
||||
#include "intl.h"
|
||||
|
||||
#ifdef VC_MUSIC
|
||||
-# if defined(__GLIBC__)
|
||||
# include <sys/ioctl.h>
|
||||
# include <sys/kd.h>
|
||||
# include <sys/time.h>
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
enum { CURRENT_VERSION = 6 };
|
||||
--- minicom-2.6.2.orig/src/getsdir.h
|
||||
+++ minicom-2.6.2/src/getsdir.h
|
||||
@@ -22,6 +22,7 @@
|
||||
* and licensing conditions. See the source, Luke.
|
||||
*/
|
||||
|
||||
+#include <sys/param.h>
|
||||
#include <dirent.h>
|
||||
|
||||
typedef struct dirEntry { /* structure of data item */
|
||||
Loading…
x
Reference in New Issue
Block a user