From 62d4cca68a554565947558a3ce2327e83af98cac Mon Sep 17 00:00:00 2001 From: Dan Theisen Date: Fri, 28 Sep 2018 00:03:19 -0700 Subject: user/minicom: new package --- user/minicom/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ user/minicom/fix-includes.patch | 24 ++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 user/minicom/APKBUILD create mode 100644 user/minicom/fix-includes.patch (limited to 'user') diff --git a/user/minicom/APKBUILD b/user/minicom/APKBUILD new file mode 100644 index 000000000..d597290e8 --- /dev/null +++ b/user/minicom/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Michael Mason +# Maintainer: Dan Theisen +pkgname=minicom +pkgver=2.7.1 +pkgrel=0 +pkgdesc="menu driven communications program for terminals" +url="https://fossies.org/linux/minicom/" +arch="all" +license="GPL-2.0+" +depends="" +makedepends="ncurses-dev gettext-tiny-dev linux-headers" +subpackages="$pkgname-doc $pkgname-lang" +source="https://fossies.org/linux/misc/$pkgname-$pkgver.tar.gz + fix-includes.patch" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="b429b32d187c3ee915c5074a0d0f08b7e3951cb8528ecbdd889837ff301662c16740ad77bd2bf3baf759c0a84e779a8dc8fd888a4260a0ace15ebc4c2f697c82 minicom-2.7.1.tar.gz +5acff3efb0b8b02333291722044d7c473bf19eec8a26e66c0e0f41895f3e3f071dff13515ec20f7ce17368732e3674f0a42b38602e61b04e9cd70e61012641ff fix-includes.patch" diff --git a/user/minicom/fix-includes.patch b/user/minicom/fix-includes.patch new file mode 100644 index 000000000..19a18dcdb --- /dev/null +++ b/user/minicom/fix-includes.patch @@ -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 + # include + # include +-# 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 + #include + + typedef struct dirEntry { /* structure of data item */ -- cgit v1.2.3-70-g09d2