From 4e4c1abe8ad986e12af48a81c7acd17b58ecc39f Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 12 Jul 2017 22:19:01 +0200 Subject: [PATCH] Add new dependency test package: hello-world-wrapper --- hello-world-wrapper/APKBUILD | 25 ++++++++++++++++++++++ hello-world-wrapper/hello-world-wrapper.sh | 5 +++++ 2 files changed, 30 insertions(+) create mode 100644 hello-world-wrapper/APKBUILD create mode 100644 hello-world-wrapper/hello-world-wrapper.sh diff --git a/hello-world-wrapper/APKBUILD b/hello-world-wrapper/APKBUILD new file mode 100644 index 000000000..1d0bf69d3 --- /dev/null +++ b/hello-world-wrapper/APKBUILD @@ -0,0 +1,25 @@ +pkgname=hello-world-wrapper +pkgver=1 +pkgrel=1 +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 \ + "$pkgdir"/usr/bin/hello-world-wrapper || return 1 +} +sha512sums="a5c25ab16c0d98749b9cce8f347b115b44522c1d791e0ffcd248c65d25343936a542ea6b8af81a3d2e4f17e7ab9403ec44b5af679129bf0ed880dd4c5bcf7139 hello-world-wrapper.sh" diff --git a/hello-world-wrapper/hello-world-wrapper.sh b/hello-world-wrapper/hello-world-wrapper.sh new file mode 100644 index 000000000..faa50e599 --- /dev/null +++ b/hello-world-wrapper/hello-world-wrapper.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +# This better be installed! +hello-world