aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdaemon
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-08 01:12:55 -0500
committerTimo Teräs <timo.teras@iki.fi>2017-09-26 09:49:59 +0000
commit209c8363334d9c7bd7df4e34f923f08e55a46ec5 (patch)
treec49b2e93340a0d76d2b4c83a18ad766148177a06 /main/libdaemon
parent1f0b140a99fd0410551f0e1e7a1831e5c7c6a642 (diff)
downloadaports-209c8363334d9c7bd7df4e34f923f08e55a46ec5.tar.bz2
aports-209c8363334d9c7bd7df4e34f923f08e55a46ec5.tar.xz
main/libdaemon: modernise, mark as having no tests
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