From 1405e784aa3a7eb9c030a76f38300506e800221b Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 20 Aug 2017 23:57:37 -0500 Subject: main/usbutils: add test suite --- main/usbutils/APKBUILD | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'main/usbutils') diff --git a/main/usbutils/APKBUILD b/main/usbutils/APKBUILD index bf5c0f6453..642878435f 100644 --- a/main/usbutils/APKBUILD +++ b/main/usbutils/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=usbutils pkgver=008 -pkgrel=1 +pkgrel=2 pkgdesc="USB Device Utilities" url="http://linux-usb.sourceforge.net/" arch="all" @@ -23,14 +23,18 @@ build() { --prefix=/usr \ --datadir=/usr/share/hwdata \ --disable-usbids \ - --disable-zlib \ - || return 1 - make || return 1 + --disable-zlib + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/lib/ mv "$pkgdir"/usr/share/pkgconfig \ "$pkgdir"/usr/lib/ -- cgit v1.2.3