2017-07-12 20:19:01 +00:00
|
|
|
pkgname=hello-world-wrapper
|
|
|
|
pkgver=1
|
2017-10-04 15:05:00 +00:00
|
|
|
pkgrel=2
|
2017-07-12 20:19:01 +00:00
|
|
|
pkgdesc="Dependency test package wrapping hello-world"
|
|
|
|
url="https://github.org/postmarketOS"
|
|
|
|
arch="noarch"
|
|
|
|
license="MIT"
|
|
|
|
depends="hello-world"
|
|
|
|
makedepends="hello-world"
|
|
|
|
subpackages=""
|
|
|
|
source="hello-world-wrapper.sh"
|
|
|
|
options=""
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$srcdir"
|
|
|
|
printf 'hello, world!\n' > expected
|
|
|
|
sh "$srcdir"/hello-world-wrapper.sh > real
|
|
|
|
diff -q expected real
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -D -m755 "$srcdir"/hello-world-wrapper.sh \
|
2017-10-04 15:05:00 +00:00
|
|
|
"$pkgdir"/usr/bin/hello-world-wrapper
|
2017-07-12 20:19:01 +00:00
|
|
|
}
|
|
|
|
sha512sums="a5c25ab16c0d98749b9cce8f347b115b44522c1d791e0ffcd248c65d25343936a542ea6b8af81a3d2e4f17e7ab9403ec44b5af679129bf0ed880dd4c5bcf7139 hello-world-wrapper.sh"
|