new file: projects/github.com/neovim/unibilium/package.yml

new file:   projects/github.com/neovim/unibilium/test.c
This commit is contained in:
ArionThinker 2023-06-19 20:31:30 +03:00 committed by Jacob Heider
parent c4ca35c92a
commit 3336be8c94
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,30 @@
distributable:
url: https://github.com/neovim/unibilium/archive/v{{version}}.tar.gz
strip-components: 1
versions:
github: neovim/unibilium
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/libtool: '*'
darwin:
invisible-island.net/ncurses: '*'
script: |
make --jobs {{ hw.concurrency }}
make --jobs {{ hw.concurrency }} install $ARGS
env:
ARGS:
- PREFIX="{{prefix}}"
test:
dependencies:
tea.xyz/gx/cc: c99
freedesktop.org/pkg-config: '*'
script: |
pkg-config --modversion unibilium | grep {{version}}
cc test.c -lunibilium -o test
./test

View file

@ -0,0 +1,10 @@
#include <unibilium.h>
#include <stdio.h>
int main() {
setvbuf(stdout, NULL, _IOLBF, 0);
unibi_term *ut = unibi_dummy();
unibi_destroy(ut);
printf("%s", unibi_terminfo_dirs);
return 0;
}