# Contributor: Kiyoshi Aman # Maintainer: Natanael Copa pkgname=socat pkgver=1.7.3.2 pkgrel=3 pkgdesc="Multipurpose relay for binary protocols" url="http://www.dest-unreach.org/socat/" arch="all" license="GPL" depends= makedepends="libressl-dev readline-dev linux-headers" subpackages="$pkgname-doc" source="http://www.dest-unreach.org/$pkgname/download/$pkgname-$pkgver.tar.bz2 use-linux-headers.patch netdb-internal.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } doc() { default_doc mkdir -p "$subpkgdir"/usr/share/socat/ install -m644 "$builddir"/EXAMPLES "$builddir"/doc/*.html "$builddir"/doc/*.css "$subpkgdir"/usr/share/"$pkgname"/ } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="607a24c15bd2cb54e9328bfbbd3a1ae9 socat-1.7.3.2.tar.bz2 c87e489c0cb4baa22c8a051fab022f03 use-linux-headers.patch 66d19b98f4de8d8f1f4d67924c9d3da6 netdb-internal.patch" sha256sums="e3561f808739383eb10fada1e5d4f26883f0311b34fd0af7837d0c95ef379251 socat-1.7.3.2.tar.bz2 609f0499d9c61cff6aa4b9be2fa4a7051463de986742f5af5181af1c7238ae86 use-linux-headers.patch ff671b41583a974f439c3ee8d223422d6f23ad508f404a4fbc240336eeb447a3 netdb-internal.patch" sha512sums="9ed4911deb09c36955b62a2efbcdfdff0e9d963fa30110e32396e49133d395afd7e61a19ca6a1a23e6e98ded4f603bcbb68c8eb3da4ce870f1450b8b6f7dd293 socat-1.7.3.2.tar.bz2 2032b6528cb27b69d8fb6a6f64af32fcc1f6e4934bb0d7c8931b38ab7ad5e27f6f4344a6cf49751fa3178cd725f954e195373362f7d5929e587d7f0309346059 use-linux-headers.patch 22a6e0c2317a9317997c98114daac258ebbcc3d8e58e49a6ebf24781b98967afed47c63807282582fa0909076fe349281f05e4462faacb90e7aabc853903d6e6 netdb-internal.patch"