mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
sourceforge.net/projects/libtirpc (#3187)
* new file: projects/sourceforge.net/projects/libtirpc/package.yml new file: projects/sourceforge.net/projects/libtirpc/test.c * fix header paths, package name * include libc * non libc test --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
d36513a06b
commit
8e302a12ad
2 changed files with 44 additions and 0 deletions
35
projects/sourceforge.net/libtirpc/package.yml
Normal file
35
projects/sourceforge.net/libtirpc/package.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
distributable:
|
||||||
|
url: https://downloads.sourceforge.net/project/libtirpc/libtirpc/{{version}}/libtirpc-{{version}}.tar.bz2
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
url: https://sourceforge.net/projects/libtirpc/files/libtirpc/
|
||||||
|
match: /libtirpc\/\d+\.\d+\.\d+/
|
||||||
|
strip:
|
||||||
|
- /^libtirpc\//
|
||||||
|
platforms:
|
||||||
|
- linux
|
||||||
|
dependencies:
|
||||||
|
kerberos.org: '*'
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
script:
|
||||||
|
- ./configure $ARGS
|
||||||
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
- run: |
|
||||||
|
mv tirpc/* .
|
||||||
|
rmdir tirpc
|
||||||
|
ln -s . tirpc
|
||||||
|
working-directory: ${{prefix}}/include
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
- --disable-silent-rules
|
||||||
|
- --prefix={{prefix}}
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
script:
|
||||||
|
- cc test.c -ltirpc -o test
|
||||||
|
- ./test
|
9
projects/sourceforge.net/libtirpc/test.c
Normal file
9
projects/sourceforge.net/libtirpc/test.c
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// Thanks, ChatGPT!
|
||||||
|
#include <rpc/rpc.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("If you see this, the program has linked correctly.\n");
|
||||||
|
svc_run();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue