mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
wpewebkit.org/libwpe (#3958)
* new file: projects/wpewebkit.org/libwpe/package.yml new file: projects/wpewebkit.org/libwpe/wpe-test.c * +make * fix includes --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
abb50e27a6
commit
6bcc093fc1
41
projects/wpewebkit.org/libwpe/package.yml
Normal file
41
projects/wpewebkit.org/libwpe/package.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
distributable:
|
||||
url: https://github.com/WebPlatformForEmbedded/libwpe/releases/download/{{version}}/libwpe-{{version}}.tar.xz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: WebPlatformForEmbedded/libwpe
|
||||
platforms:
|
||||
- linux
|
||||
dependencies:
|
||||
xkbcommon.org: '*'
|
||||
mesa3d.org: '*'
|
||||
build:
|
||||
dependencies:
|
||||
gnu.org/gcc: '*'
|
||||
mesonbuild.com: '*'
|
||||
ninja-build.org: '*'
|
||||
freedesktop.org/pkg-config: '*'
|
||||
script:
|
||||
- meson setup build $MESON_ARGS
|
||||
- meson compile -C build --verbose
|
||||
- meson install -C build
|
||||
- run: |
|
||||
mv wpe-1.0/* .
|
||||
rmdir wpe-1.0
|
||||
ln -s . wpe-1.0
|
||||
working-directory: ${{prefix}}/include
|
||||
env:
|
||||
LDFLAGS: "-fPIC"
|
||||
MESON_ARGS:
|
||||
- --prefix="{{prefix}}"
|
||||
- --libdir="{{prefix}}/lib"
|
||||
- --buildtype=release
|
||||
- --wrap-mode=nofallback
|
||||
test:
|
||||
dependencies:
|
||||
gnu.org/gcc: '*'
|
||||
gnu.org/make: '*'
|
||||
script:
|
||||
- make wpe-test
|
||||
- ./wpe-test | grep {{version}}
|
||||
env:
|
||||
LDLIBS: -lwpe-1.0
|
5
projects/wpewebkit.org/libwpe/wpe-test.c
Normal file
5
projects/wpewebkit.org/libwpe/wpe-test.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "wpe/wpe.h"
|
||||
#include <stdio.h>
|
||||
int main() {
|
||||
printf("%u.%u.%u", wpe_get_major_version(), wpe_get_minor_version(), wpe_get_micro_version());
|
||||
}
|
Loading…
Reference in a new issue