diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-20 23:57:37 -0500 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-28 08:40:52 +0000 |
commit | 1405e784aa3a7eb9c030a76f38300506e800221b (patch) | |
tree | b356cc47cf8ad1a8298f3ac4075be31950c2f9df /main/usbutils | |
parent | f25b438c0fc9b2ed4a32ce2e24227cae20ac7d3b (diff) | |
download | aports-1405e784aa3a7eb9c030a76f38300506e800221b.tar.bz2 aports-1405e784aa3a7eb9c030a76f38300506e800221b.tar.xz |
main/usbutils: add test suite
Diffstat (limited to 'main/usbutils')
-rw-r--r-- | main/usbutils/APKBUILD | 14 |
1 files changed, 9 insertions, 5 deletions
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 <ncopa@alpinelinux.org> 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/ |