1c0ff6aa23
Later, the aports folder will probably get split up in its own repository. But right now this is simply convenient.
31 lines
795 B
Text
31 lines
795 B
Text
pkgname=hello-world
|
|
pkgver=1
|
|
pkgrel=2
|
|
pkgdesc="hello world program to be built in the testsuite"
|
|
url="https://en.wikipedia.org/wiki/%22Hello,_World!%22_program"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
makedepends=""
|
|
subpackages=""
|
|
source="main.c Makefile"
|
|
options=""
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir"
|
|
printf 'hello, world!\n' > expected
|
|
./hello-world > real
|
|
diff -q expected real
|
|
}
|
|
|
|
package() {
|
|
install -D -m755 "$srcdir"/hello-world \
|
|
"$pkgdir"/usr/bin/hello-world || return 1
|
|
}
|
|
sha512sums="d5ad91600d9be3e53be4cb6e5846b0757786c947b2c0d10f612f67262fc91c148e8d73621623e259ca9dcd5e2c8ec7069cebec44165e203ea8c0133669d3382d main.c
|
|
80c32948d3254f5e4f9084d73754824e7d7d7d117770b041a1a13baf056773de265153fe518cc3e735db55b638411aa6fbd0e17b5b674dfc89e69a9391fbd3bb Makefile"
|