new: add hello world

This commit is contained in:
2025-03-28 23:31:27 -04:00
parent 9ed5f1410f
commit a6e8f7139f

25
test/hello-1.0.PKGBUILD Normal file
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
}