From da51282df4136ec8d019d46a05f09edd97633483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 26 Dec 2017 18:06:38 +0100 Subject: community/picocom: modernize APKBUILD --- community/picocom/APKBUILD | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/community/picocom/APKBUILD b/community/picocom/APKBUILD index 6c21848b81..9d04cca36f 100644 --- a/community/picocom/APKBUILD +++ b/community/picocom/APKBUILD @@ -10,25 +10,26 @@ license="GPL2" depends="" makedepends="" install="" +options="!check" # upstream doesn't have a test suite. subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/npat-efault/${pkgname}/archive/${pkgver}.tar.gz" - builddir="$srcdir"/$pkgname-$pkgver + build() { make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ - -C "$builddir" || return 1 + -C "$builddir" } package() { install -Dm755 "$builddir"/$pkgname \ - "$pkgdir"/usr/bin/$pkgname || return 1 + "$pkgdir"/usr/bin/$pkgname install -Dm644 "$builddir"/$pkgname.1 \ - "$pkgdir"/usr/share/man/man1/$pkgname.1 || return 1 + "$pkgdir"/usr/share/man/man1/$pkgname.1 local file= for file in CONTRIBUTORS README.md TODO lowerrts.md; do install -Dm644 "$builddir"/$file \ - "$pkgdir"/usr/share/doc/$pkgname/$file || return 1 + "$pkgdir"/usr/share/doc/$pkgname/$file done } -- cgit v1.2.3