libproxy.github.io/libproxy (#3513)

* new file:   projects/libproxy.github.io/libproxy/package.yml

* display-name

* curl

* maybe

* llvm

* wip

* wip

* add gcc

* llvm

* include -lm on linux

* maybe it's duktape that needs libm

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Andrew 2023-11-20 22:54:55 +02:00 committed by GitHub
parent 97ed30fa21
commit f52badaf80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 2 deletions

View file

@ -10,11 +10,13 @@ build:
- mkdir -p {{prefix}}/bin - mkdir -p {{prefix}}/bin
- install duk {{prefix}}/bin/ - install duk {{prefix}}/bin/
env: env:
INSTALL_PREFIX: "{{prefix}}" INSTALL_PREFIX: '{{prefix}}'
linux:
LDFLAGS: '$LDFLAGS -lm'
provides: provides:
- bin/duk - bin/duk
test: test:
script: script:
- duk test.js | grep "Hello World!" - duk test.js | grep "Hello World!"
- cc test.c -o test -lduktape -lm - cc test.c -o test -lduktape
- ./test - ./test

View file

@ -0,0 +1,41 @@
distributable:
url: https://github.com/libproxy/libproxy/archive/{{version}}.tar.gz
strip-components: 1
versions:
github: libproxy/libproxy
display-name: libproxy
dependencies:
duktape.org: '*'
gnome.org/glib: '*'
curl.se: '*'
linux:
freedesktop.org/dbus: '*'
llvm.org: '*'
build:
dependencies:
gnome.org/gobject-introspection: '*'
gnome.org/gsettings-desktop-schemas: '*'
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
gnome.org/vala: '*'
script:
- meson setup build $MESON_ARGS
- meson compile -C build --verbose
- meson install -C build
env:
MESON_ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
- -Ddocs=false
linux:
LD: clang
CC: clang
CXX: clang++
provides:
- bin/proxy
test:
script:
- proxy https://tea.xyz/ | grep "direct://"