mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
new file: projects/github.com/neovim/unibilium/package.yml
new file: projects/github.com/neovim/unibilium/test.c
This commit is contained in:
parent
c4ca35c92a
commit
3336be8c94
2 changed files with 40 additions and 0 deletions
30
projects/github.com/neovim/unibilium/package.yml
Normal file
30
projects/github.com/neovim/unibilium/package.yml
Normal 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
|
10
projects/github.com/neovim/unibilium/test.c
Normal file
10
projects/github.com/neovim/unibilium/test.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue