From ef39d3f74fa9439b8e0d9cf717a28a44123791c2 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Fri, 29 Dec 2017 13:10:57 +0000 Subject: [PATCH] testing/n30f: modernize and add basic check Add basic check as upstream doesn't provide a test suite. --- testing/n30f/APKBUILD | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/testing/n30f/APKBUILD b/testing/n30f/APKBUILD index 11d81437e01..c9d30b8eb52 100644 --- a/testing/n30f/APKBUILD +++ b/testing/n30f/APKBUILD @@ -2,22 +2,27 @@ # Maintainer: Camille Scholtz pkgname=n30f pkgver=2.0 -pkgrel=0 -pkgdesc="a quick hack to display a png in a borderless and transparent non-wm-managed window" +pkgrel=1 +pkgdesc="A quick hack to display a png in a borderless and transparent non-wm-managed window" url="https://github.com/sdhand/n30f" arch="all" license="BSD" -depends="" depends_dev="cairo-dev libxcb-dev" makedepends="$depends_dev" source="$pkgname-$pkgver.tar.gz::https://github.com/sdhand/$pkgname/archive/$pkgver.tar.gz" -builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir/$pkgname-$pkgver" + build() { cd "$builddir" make } +check() { + cd "$builddir" + ./n30f --help > /dev/null +} + package() { cd "$builddir" make DESTDIR="$pkgdir" install