new tests: test/hello-1.0-r1

This commit is contained in:
2026-01-17 18:53:11 -05:00
parent 370ff89030
commit 56a25f0fdb

View File

@@ -0,0 +1,25 @@
pkgname="hello"
pkgver="1.0"
homepage="https://gitea.phywyj.dynv6.net"
pkgdesc="Just a hello world"
license=("GPL")
sourses=()
urls=()
md5sums=()
src_prepare() {
cat > "hello.c" << "EOF"
#include <stdio.h>
int main(){
printf("Hello! LFS!\n");
}
EOF
}
src_build() {
cc ${CFLAGS} hello.c -o hello
}
src_install() {
install -Dm755 hello ${pkgdir}/usr/bin/hello
}