mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
github.com/rrthomas/libpaper
This commit is contained in:
parent
83bb5fee79
commit
e8048bb66e
2 changed files with 36 additions and 0 deletions
29
projects/github.com/rrthomas/libpaper/package.yml
Normal file
29
projects/github.com/rrthomas/libpaper/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/rrthomas/libpaper/releases/download/v{{version}}/libpaper-{{version}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
versions:
|
||||||
|
github: rrthomas/libpaper
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
gnu.org/make: '*'
|
||||||
|
gnu.org/help2man: '*'
|
||||||
|
script:
|
||||||
|
- ./configure $CONFIGURE_ARGS
|
||||||
|
- make install
|
||||||
|
env:
|
||||||
|
CONFIGURE_ARGS:
|
||||||
|
- --disable-debug
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
- --prefix="{{prefix}}"
|
||||||
|
- --libdir="{{prefix}}/lib"
|
||||||
|
- --sysconfdir="{{prefix}}/etc"
|
||||||
|
provides:
|
||||||
|
- bin/paper
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
script:
|
||||||
|
- paper --version | grep {{version}}
|
||||||
|
- cc test.c -lpaper -o test
|
||||||
|
- ./test
|
7
projects/github.com/rrthomas/libpaper/test.c
Normal file
7
projects/github.com/rrthomas/libpaper/test.c
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#include <paper.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
enum paper_unit unit;
|
||||||
|
int ret = paperinit();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue