aboutsummaryrefslogtreecommitdiffstats
path: root/community/picocom/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-12-26 18:06:38 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2017-12-26 18:10:07 +0100
commitda51282df4136ec8d019d46a05f09edd97633483 (patch)
treef6e206e1d5f9799ebf5afe3ab9460de06295630a /community/picocom/APKBUILD
parent268066ca3b9090bd8f0ccf5f6f27ea241691243d (diff)
downloadaports-da51282df4136ec8d019d46a05f09edd97633483.tar.bz2
aports-da51282df4136ec8d019d46a05f09edd97633483.tar.xz
community/picocom: modernize APKBUILD
Diffstat (limited to 'community/picocom/APKBUILD')
-rw-r--r--community/picocom/APKBUILD11
1 files 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
}