mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 10:25:05 +03:00
new file: projects/github.com/OpenSC/pkcs11-helper/package.yml
new file: projects/github.com/OpenSC/pkcs11-helper/test.c
This commit is contained in:
parent
3336be8c94
commit
f2fe259461
2 changed files with 46 additions and 0 deletions
38
projects/github.com/OpenSC/pkcs11-helper/package.yml
Normal file
38
projects/github.com/OpenSC/pkcs11-helper/package.yml
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-{{version}}/pkcs11-helper-{{version}}.tar.bz2
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: OpenSC/pkcs11-helper
|
||||||
|
strip: /^pkcs11-helper-/
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
openssl.org: ^3.1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
tea.xyz/gx/make: '*'
|
||||||
|
gnu.org/autoconf: '*'
|
||||||
|
gnu.org/automake: '*'
|
||||||
|
gnu.org/libtool: '*'
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script: |
|
||||||
|
autoreconf --verbose --install --force
|
||||||
|
./configure $ARGS
|
||||||
|
make --jobs {{ hw.concurrency }} install
|
||||||
|
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- --prefix="{{prefix}}"
|
||||||
|
- --disable-debug
|
||||||
|
- --disable-dependency-tracking
|
||||||
|
|
||||||
|
test:
|
||||||
|
dependencies:
|
||||||
|
tea.xyz/gx/cc: c99
|
||||||
|
freedesktop.org/pkg-config: '*'
|
||||||
|
script: |
|
||||||
|
pkg-config --modversion libpkcs11-helper-{{version.major}} | grep {{version}}
|
||||||
|
cc ./test.c -lpkcs11-helper -o test
|
||||||
|
./test
|
8
projects/github.com/OpenSC/pkcs11-helper/test.c
Normal file
8
projects/github.com/OpenSC/pkcs11-helper/test.c
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <pkcs11-helper-1.0/pkcs11h-core.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("Version: %08x", pkcs11h_getVersion ());
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue