# Contributor: Manolis Tzanidakis
# Contributor: Mark Rosenstand <mark@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=libdaemon
pkgver=0.14
pkgrel=5.1
cross=nf
pkgdesc='Lightweight C library that eases the writing of UNIX daemons'
url='http://0pointer.de/lennart/projects/libdaemon/'
license=('LGPL')
ncxfab_makedepends=('git' 'base-devel')
source=("http://0pointer.de/lennart/projects/libdaemon/libdaemon-${pkgver}.tar.gz")
sha512sums=('a96b25c09bd63cc192c1c5f8b5bf34cc6ad0c32d42ac14b520add611423b6ad3d64091a47e0c7ab9a94476a5e645529abccea3ed6b23596567163fba88131ff2')

build() {
	cd "${srcdir}/libdaemon-${pkgver}"
	test -f ./config.sub && rm -f ./config.sub
	NOCONFIGURE=1 ./bootstrap.sh
	./configure --build=$MPKG_BUILDMACHINE --prefix=$MPKG_USRPATH --localstatedir=$MPKG_VARPATH --disable-lynx
	make
}

package() {
	cd "${srcdir}/libdaemon-${pkgver}"
	make DESTDIR="${pkgdir}" install
}

