pantry/projects/tea.xyz/brewkit/package.yml

45 lines
868 B
YAML
Raw Normal View History

2023-02-10 19:15:08 +03:00
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: '*'
2023-03-11 14:40:24 +03:00
tea.xyz: ^0.24.10
2023-02-10 19:15:08 +03:00
2023-02-11 15:25:58 +03:00
build: |
mkdir -p {{prefix}}
2023-03-11 16:54:19 +03:00
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
2023-02-10 19:15:08 +03:00
2023-04-30 02:33:17 +03:00
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
2023-02-10 19:15:08 +03:00
test:
2023-02-11 17:59:00 +03:00
dependencies:
zlib.net: '*'
script:
2023-03-11 14:40:24 +03:00
pkg test zlib.net
2023-02-11 17:59:00 +03:00
# 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