new file: projects/freedesktop.org/uchardet/package.yml (#1760)

This commit is contained in:
Andrew 2023-05-01 17:13:44 +03:00 committed by GitHub
parent b781e6c0a0
commit b8c6816cfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,29 @@
distributable:
url: https://www.freedesktop.org/software/uchardet/releases/uchardet-{{version}}.tar.xz
strip-components: 1
versions:
url: https://www.freedesktop.org/software/uchardet/releases/
match: /uchardet-\d+\.\d+\.\d+.tar.xz/
strip:
- /^uchardet-/
- /\.tar.xz/
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: '*'
script: |
cmake $ARGS
make --jobs {{ hw.concurrency }} install
env:
ARGS:
- -DCMAKE_INSTALL_PREFIX={{prefix}}
- -DCMAKE_BUILD_TYPE=Release
provides:
- bin/uchardet
test:
uchardet --version | grep {{version}}