From a6e8f7139fb195daa0976f88643ae0b31ff4366f Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Fri, 28 Mar 2025 23:31:27 -0400 Subject: [PATCH] new: add hello world --- test/hello-1.0.PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/hello-1.0.PKGBUILD diff --git a/test/hello-1.0.PKGBUILD b/test/hello-1.0.PKGBUILD new file mode 100644 index 0000000..0938cee --- /dev/null +++ b/test/hello-1.0.PKGBUILD @@ -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 +int main(){ + printf("Hello! LFS!\n"); +} +EOF +} + +src_build() { + cc ${CFLAGS} hello.c -o hello +} + +src_install() { + install -Dm755 hello ${pkgdir}/usr/bin/hello +}