aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdaemon/APKBUILD
blob: a6adb55fd4da3966994d678b51a97391a8326d85 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdaemon
pkgver=0.14
pkgrel=1
pkgdesc="A lightweight C library which eases the writing of UNIX daemons"
url="http://0pointer.de/lennart/projects/libdaemon/"
arch="all"
license="LGPL"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://0pointer.de/lennart/projects/libdaemon/libdaemon-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build () {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--disable-lynx \
		|| return 1
	make || return 1
}

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

md5sums="509dc27107c21bcd9fbf2f95f5669563  libdaemon-0.14.tar.gz"