# Contributor: Síle Ekaterin Liszka # Maintainer: Síle Ekaterin Liszka pkgname=socat pkgver=1.7.4.3 pkgrel=0 pkgdesc="Multipurpose network relay" url="http://www.dest-unreach.org/socat/" arch="all" options="!check" # No testsuite license="GPL-2.0-only" depends="" makedepends="openssl-dev" subpackages="$pkgname-doc" source="http://www.dest-unreach.org/socat/download/socat-$pkgver.tar.gz netdb-internal.patch " build() { # Just like Solaris, musl doesn't have getprotobynumber_r. # Setting the configure variable to 2 ensures it isn't used. sc_cv_getprotobynumber_r=2 \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } package() { make DESTDIR="$pkgdir" install } sha512sums="81cb34c245052b6a0ae38a711591358460b6070957af4a9eeb11a3cadb4aff184eeaedabbc7ecdc7fdf21a6126c06f90f19b24a87ce74b30bfd60a3879181046 socat-1.7.4.3.tar.gz 22a6e0c2317a9317997c98114daac258ebbcc3d8e58e49a6ebf24781b98967afed47c63807282582fa0909076fe349281f05e4462faacb90e7aabc853903d6e6 netdb-internal.patch"