# Contributor: Kiyoshi Aman # Maintainer: Natanael Copa pkgname=socat pkgver=1.7.2.1 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 --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="7ddfea7e9e85f868670f94d3ea08358b socat-1.7.2.1.tar.bz2"