pantry/projects/tea.xyz/brewkit/package.yml
2023-04-30 16:14:58 -04:00

44 lines
868 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

distributable:
url: https://github.com/teaxyz/brewkit/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1
versions:
github: teaxyz/brewkit
dependencies:
deno.land: ^1.30
gnu.org/bash: '*'
tea.xyz: ^0.24.10
build: |
mkdir -p {{prefix}}
rm -rf {{prefix}}/*
# ^^ because our build infra uses this pkg to build itself
for x in bin libexec lib share deno.*; do
test -e $x && mv $x "{{prefix}}"
done
cd "{{prefix}}/bin"
if ! test -e bk; then
cat >>bk <<EOF
#!/bin/sh
echo "bk is provided by brewkit >=0.25.0"
echo "please update to use this shortcut"
exit 1
EOF
chmod +x bk
fi
provides:
- bin/bk
test:
dependencies:
zlib.net: '*'
script:
pkg test zlib.net
# we would like to test builds but we need a `GITHUB_TOKEN` and
# (currently) we cant figure out how to set that up in CI/CD