mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 11:19:50 +03:00
main/gensio: new aport
needed by ser2net General Stream I/O https://github.com/cminyard/gensio
This commit is contained in:
parent
255647e649
commit
970fd30b79
2 changed files with 71 additions and 0 deletions
53
main/gensio/APKBUILD
Normal file
53
main/gensio/APKBUILD
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
|
pkgname=gensio
|
||||||
|
pkgver=2.8.14
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="General Stream I/O"
|
||||||
|
url="https://github.com/cminyard/gensio"
|
||||||
|
arch="all"
|
||||||
|
license="GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0"
|
||||||
|
makedepends="openssl-dev linux-headers libtool autoconf automake"
|
||||||
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
|
||||||
|
source="https://github.com/cminyard/gensio/releases/download/v$pkgver/gensio-$pkgver.tar.gz
|
||||||
|
gensio-install-dir.patch"
|
||||||
|
builddir="$srcdir/gensio-$pkgver"
|
||||||
|
options="!check" # tests appear to be broken or depend on internal trace
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
default_prepare
|
||||||
|
autoreconf -vif
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
./configure \
|
||||||
|
--build=$CBUILD \
|
||||||
|
--host=$CHOST \
|
||||||
|
--prefix=/usr \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--without-go \
|
||||||
|
--without-python \
|
||||||
|
--without-all-gensios \
|
||||||
|
--with-dgram=yes \
|
||||||
|
--with-mux=yes \
|
||||||
|
--with-net=yes \
|
||||||
|
--with-pty=yes \
|
||||||
|
--with-serialdev=yes \
|
||||||
|
--with-stdio=yes \
|
||||||
|
--with-telnet=yes
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
make check
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
8255ce52832a601b657b3485b65b3f3ccbbc1059d6d63eb6796e24d5bb0ebd4bfa7a3d525a0309214351b1fc385887c5fa3dac74cbf790f5d250c8441a833e68 gensio-2.8.14.tar.gz
|
||||||
|
32f7fce19092b02b7e2b5b350072dc366ba097026930213e78a5f82ad5b38a9d3f1c536120fe60ba743b726cbe14a33c00e4380abd6e06d373602d986d81ce60 gensio-install-dir.patch
|
||||||
|
"
|
18
main/gensio/gensio-install-dir.patch
Normal file
18
main/gensio/gensio-install-dir.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
Patch-from: https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/gensio/files/gensio-2.8.5-install-dir.patch
|
||||||
|
|
||||||
|
--- gensio-2.8.5.orig/lib/Makefile.am 2024-06-18 21:45:20.427838306 -0700
|
||||||
|
+++ gensio-2.8.5/lib/Makefile.am 2024-06-18 21:46:09.360860952 -0700
|
||||||
|
@@ -385,6 +385,7 @@
|
||||||
|
endif
|
||||||
|
|
||||||
|
install-exec-hook:
|
||||||
|
+ @(install -d $(DESTDIR)$(gensiolibexecdir))
|
||||||
|
@(cd $(DESTDIR)$(gensiolibexecdir) && $(RM) -f $(gensiolibexec_LTLIBRARIES))
|
||||||
|
@(cd $(DESTDIR)$(gensiolibexecdir) && $(RM) -f $(xgensio_libs))
|
||||||
|
|
||||||
|
@@ -392,4 +393,5 @@
|
||||||
|
# libtool will not remove the .so or .dll files since the .la file is
|
||||||
|
# no longer there. We have to do that by hand.
|
||||||
|
uninstall-hook:
|
||||||
|
+ @(install -d $(DESTDIR)$(gensiolibexecdir))
|
||||||
|
@(cd $(DESTDIR)$(gensiolibexecdir) && $(RM) -f $(xgensio_solibs))
|
Loading…
Add table
Add a link
Reference in a new issue