mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
parent
20550d213c
commit
e78914f3f8
1 changed files with 48 additions and 0 deletions
48
projects/duckdb.org/package.yml
Normal file
48
projects/duckdb.org/package.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
distributable:
|
||||
url: https://github.com/duckdb/duckdb/archive/refs/tags/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
# if there’s a github then we can parse the versions
|
||||
versions:
|
||||
github: duckdb/duckdb/releases/tags
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: ^3
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake ..
|
||||
make --jobs {{ hw.concurrency }}
|
||||
mkdir -p "{{prefix}}"/bin
|
||||
mv duckdb "{{prefix}}"/bin
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DBUILD_ICU_EXTENSION=1
|
||||
- -DBUILD_JSON_EXTENSION=1
|
||||
- -DBUILD_PARQUET_EXTENSION=1
|
||||
|
||||
provides:
|
||||
- bin/duckdb
|
||||
# ^^ specify the binaries or tea magic won’t work
|
||||
|
||||
test:
|
||||
fixture: |
|
||||
CREATE TABLE weather (temp INTEGER);
|
||||
INSERT INTO weather (temp) VALUES (40), (45), (50);
|
||||
SELECT AVG(temp) FROM weather;
|
||||
script: |
|
||||
out="$(duckdb < $FIXTURE)"
|
||||
exp=$(cat <<EOS
|
||||
┌─────────────┐
|
||||
│ avg("temp") │
|
||||
│ double │
|
||||
├─────────────┤
|
||||
│ 45.0 │
|
||||
└─────────────┘
|
||||
EOS)
|
||||
|
||||
test "$out" = "$exp"
|
Loading…
Reference in a new issue