aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdaemon
diff options
context:
space:
mode:
Diffstat (limited to 'main/libdaemon')
-rw-r--r--main/libdaemon/APKBUILD29
1 files changed, 12 insertions, 17 deletions
diff --git a/main/libdaemon/APKBUILD b/main/libdaemon/APKBUILD
index 1f987b2659..480dc06d01 100644
--- a/main/libdaemon/APKBUILD
+++ b/main/libdaemon/APKBUILD
@@ -1,11 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdaemon
pkgver=0.14
-pkgrel=1
+pkgrel=2
pkgdesc="A lightweight C library which eases the writing of UNIX daemons"
url="http://0pointer.de/lennart/projects/libdaemon/"
arch="all"
license="LGPL"
+options="!check" # No test suite.
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
@@ -13,32 +14,26 @@ 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
+ cd "$builddir"
+ update_config_sub
+ default_prepare
}
-build () {
- cd "$_builddir"
+
+build() {
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--localstatedir=/var \
- --disable-lynx \
- || return 1
- make || return 1
+ --disable-lynx
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
md5sums="509dc27107c21bcd9fbf2f95f5669563 libdaemon-0.14.tar.gz