# Contributor: Kiyoshi Aman # Maintainer: Natanael Copa pkgname=socat pkgver=1.7.2.2 pkgrel=0 pkgdesc="Multipurpose relay for binary protocols" url="http://www.dest-unreach.org/socat/" arch="all" license="GPL" depends= makedepends="openssl-dev readline-dev" subpackages="$pkgname-doc" source="http://www.dest-unreach.org/$pkgname/download/$pkgname-$pkgver.tar.bz2" _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="39231e512d8052f328552865df15d42f socat-1.7.2.2.tar.bz2" sha256sums="9a167af11a4d3809cbc66f5e2dcb39b6e371251282ef5de6ea6ff0c4be8a953c socat-1.7.2.2.tar.bz2" sha512sums="712a9e061139ffc38552db9321bac143f22da85852dc8b30148c5fb3b4209d4a963a62948aaf9eb35f63b23b4b6459627effb5a2b6757b70ddecffe31860b73b socat-1.7.2.2.tar.bz2"