summaryrefslogtreecommitdiffstats
path: root/main/libdaemon/APKBUILD
blob: 5ae2f6cf02a93460891fea07efaac3fb8e931893 (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
41
42
43
44
45
46
47
48
49
50
# 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://dev.alpinelinux.org/archive/libdaemon/libdaemon-$pkgver.tar.gz
	fix-includes.patch
	"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
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
eaec55e5ecb35805d70ca7fc6a74f85c  fix-includes.patch"
sha256sums="fd23eb5f6f986dcc7e708307355ba3289abe03cc381fc47a80bca4a50aa6b834  libdaemon-0.14.tar.gz
6f27a2acc2707b91320190a7946b18f0a34ed68acf0c282e6ec08ee8345b0739  fix-includes.patch"
sha512sums="a96b25c09bd63cc192c1c5f8b5bf34cc6ad0c32d42ac14b520add611423b6ad3d64091a47e0c7ab9a94476a5e645529abccea3ed6b23596567163fba88131ff2  libdaemon-0.14.tar.gz
2351e87a645d997d4f549807b809376ab7be78f833f6ba44100509b7ffdd9f526ec95c3a265d059eb35531fa489e814e21bc6ab85540c539c67677124d2f7924  fix-includes.patch"