new tests: test/hello-1.0-r1
This commit is contained in:
25
test/hello-1.0-r1.PKGBUILD
Normal file
25
test/hello-1.0-r1.PKGBUILD
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user