aboutsummaryrefslogtreecommitdiffstats
path: root/main/socat/APKBUILD
blob: 652bf808d6c1e04d3d4daa9b6ce117e8ad2d983a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=socat
pkgver=1.7.1.3
pkgrel=1
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="2081987fb0cb0290b8105574058cb329  socat-1.7.1.3.tar.bz2"