2023-05-01 17:13:44 +03:00
|
|
|
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:
|
|
|
|
cmake.org: '*'
|
2024-04-24 23:10:02 +03:00
|
|
|
script:
|
|
|
|
- cmake $ARGS
|
|
|
|
- make --jobs {{ hw.concurrency }} install
|
|
|
|
- run: |
|
|
|
|
mv uchardet/* .
|
|
|
|
rmdir uchardet
|
|
|
|
ln -s . uchardet
|
|
|
|
working-directory: ${{prefix}}/include
|
2023-05-01 17:13:44 +03:00
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/uchardet
|
|
|
|
|
2024-04-24 23:10:02 +03:00
|
|
|
test: uchardet --version | grep {{version}}
|