aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/libcoap/APKBUILD17
1 files changed, 8 insertions, 9 deletions
diff --git a/testing/libcoap/APKBUILD b/testing/libcoap/APKBUILD
index af91aeb9c5..68906089c5 100644
--- a/testing/libcoap/APKBUILD
+++ b/testing/libcoap/APKBUILD
@@ -14,13 +14,13 @@ checkdepends="cunit-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/obgm/$pkgname/archive/v$pkgver.tar.gz"
-builddir="$srcdir/libcoap-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
- ./autogen.sh || return 1
+ ./autogen.sh
}
build() {
@@ -32,22 +32,21 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
- --enable-tests \
- || return 1
- make || return 1
+ --enable-tests
+ make
}
check() {
- "$builddir"/tests/testdriver || return 1
+ "$builddir"/tests/testdriver
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
install -m644 CONTRIBUTE AUTHORS ChangeLog NEWS README.md TODO \
- "$pkgdir"/usr/share/doc/$pkgname || return 1
+ "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="151f40cdacddf25bdffe367b4f1e3bf295445eac966db7bcf6692047cd9d5476b726f08c8d1de7dbe4ebe2477162b4df5e6c121e24eac79f9a4041ab2a646be6 libcoap-4.1.2.tar.gz"