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> # Maintainer: Camille Scholtz <onodera@openmailbox.org>
pkgname=n30f pkgname=n30f
pkgver=2.0 pkgver=2.0
pkgrel=0 pkgrel=1
pkgdesc="a quick hack to display a png in a borderless and transparent non-wm-managed window" pkgdesc="A quick hack to display a png in a borderless and transparent non-wm-managed window"
url="https://github.com/sdhand/n30f" url="https://github.com/sdhand/n30f"
arch="all" arch="all"
license="BSD" license="BSD"
depends=""
depends_dev="cairo-dev libxcb-dev" depends_dev="cairo-dev libxcb-dev"
makedepends="$depends_dev" makedepends="$depends_dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/sdhand/$pkgname/archive/$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/sdhand/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver builddir="$srcdir/$pkgname-$pkgver"
build() { build() {
cd "$builddir" cd "$builddir"
make make
} }
check() {
cd "$builddir"
./n30f --help > /dev/null
}
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install