testing/n30f: modernize and add basic check

Add basic check as upstream doesn't provide a test suite.
This commit is contained in:
Roberto Oliveira 2017-12-29 13:10:57 +00:00
parent 801c0dadf3
commit ef39d3f74f

View File

@ -2,22 +2,27 @@
# Maintainer: Camille Scholtz <onodera@openmailbox.org>
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