summaryrefslogtreecommitdiffstats
path: root/main/vanessa_socket/APKBUILD
blob: a49474c22e6df39129dc3ffaad8efe7e265942f6 (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
34
35
36
37
38
39
40
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=vanessa_socket
pkgver=0.0.10
pkgrel=3
pkgdesc="User space TCP/IP pipe"
url="http://horms.net/projects/perdition/"
arch="all"
license="LGPL"
depends=
depends_dev="popt-dev vanessa_logger-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev"
source="http://horms.net/projects/perdition/download/1.18/$pkgname-$pkgver.tar.bz2"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	return 0
}

build() {
	export LDFLAGS="$LDFLAGS -lvanessa_logger"
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="fc351cde6b388fced8befeaff3912d3b  vanessa_socket-0.0.10.tar.bz2"